-
Notifications
You must be signed in to change notification settings - Fork 0
/
netlify.toml
30 lines (25 loc) · 1.05 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
# Global settings applied to the whole site.
#
# “base” is the directory to change to before starting build. If you set base:
# that is where we will look for package.json/.nvmrc/etc, not repo root!
# “command” is your build command.
# “publish” is the directory to publish (relative to the root of your repo).
[build]
base = ""
publish = "public"
functions = "lambda"
environment = { NODE_ENV = "production", NODE_VERSION = "18.12.1" }
# No longer needed as it's installed from Netlify portal
# Source: https://docs.netlify.com/integrations/frameworks/gatsby/#install-the-essential-gatsby-build-plugin
# For optimizing build time
# https://www.netlify.com/blog/2020/06/11/5-optimizations-for-faster-gatsby-builds/
#[[plugins]]
# package = "@netlify/plugin-gatsby"
# Production context: All deploys to the main
# repository branch will inherit these settings.
[context.production]
command = "npm run build"
# Deploy Preview context: All Deploy Previews
# will inherit these settings.
[context.deploy-preview]
command = "npm run build"