-
Notifications
You must be signed in to change notification settings - Fork 36
/
netlify.toml
31 lines (25 loc) · 1011 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
23
24
25
26
27
28
29
30
31
# 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]
command = "yarn build:qa"
# 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 = "packages/react-app/dist"
[build.environment]
NODE_VERSION = "14.17.5"
NEXT_PUBLIC_BUILD_ENV="development"
[dev]
command = "yarn dev"
[[plugins]]
package = "@netlify/plugin-nextjs"
# Production context:
# All deploys from the main repository branch
# will inherit these settings.
[context.production]
command = "yarn build:prod"
publish = "packages/react-app/dist"
[context.production.environment]
NEXT_PUBLIC_BUILD_ENV="production"