-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnetlify.toml
57 lines (46 loc) · 1.94 KB
/
netlify.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# This is an example Dendron publishing configuration for Netlify
# Learn more at wiki.dendron.so
# Base template, before being modified for Dendron:
# https://docs.netlify.com/configure-builds/file-based-configuration/
# Settings in the [build] context are global and are applied to all contexts
# unless otherwise overridden by more specific contexts.
[build]
# Directory to change to before starting a build.
# This is where we will look for package.json/.nvmrc/etc.
# If not set, defaults to the root directory.
# base = "project/"
# Directory that contains the deploy-ready HTML files and assets generated by
# the build. This is relative to the base directory if one has been set, or the
# root directory if a base has not been set. This sample publishes the
# directory located at the absolute path "root/project/build-output"
publish = "docs"
# Build command
# Use the build script at root of repo
command = "./dendron-publish-site.sh"
# Optional: Designate a specific NODE_VERSION
# environment = { NODE_VERSION = "16.13.2" }
[build.environment]
NETLIFY_NEXT_PLUGIN_SKIP = "true"
[[plugins]]
# Installs the Lighthouse Build Plugin for all deploy contexts
package = "@netlify/plugin-lighthouse"
[[plugins]]
# Next.js plugin, to implement caching, etc.
# https://github.com/netlify/netlify-plugin-nextjs
package = "@netlify/plugin-nextjs"
# Branch Deploy context: all deploys that are not from a pull/merge request or
# from the Production branch will inherit these settings.
[context.branch-deploy]
command = "echo branch"
[context.branch-deploy.environment]
NODE_ENV = "development"
# Specific branch context: all deploys from this specific branch will inherit
# these settings.
[context.dev] # "dev" is a branch name
command = "echo 'dev'"
base = "dev"
# For contexts of branches with special characters, enclose the branch name
# with quotes.
[context."feat/branch"]
command = "echo 'special branch'"
base = "branch"