-
Notifications
You must be signed in to change notification settings - Fork 2
/
netlify.toml
23 lines (19 loc) · 932 Bytes
/
netlify.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
[build]
# Directory to change to before starting a build.
# This is where we will look for package.json/.nvmrc/etc.
base = "site"
# Directory (not? relative to root of your repo) that contains the deploy-ready
# HTML files and assets generated by the build. If a base directory has
# been specified, include it in the publish directory path.
publish = "public"
# Default build command.
command = "NODE_ENV=production npm run build"
# Base-path relative command to determine if site has changed.
#
# "An exit-code of 1 indicates the contents have changed, so if your command returns that code the build process will continue per usual.
# An exit-code of 0 indicates that the build should return early."
# https://docs.netlify.com/configure-builds/file-based-configuration/#ignore-builds
# diff => 1
# no diff => 0
# deploy if diff, ignore when no diff
ignore = "git diff --quiet HEAD^ HEAD ."