2022-09-29 01:59:28 +00:00
|
|
|
[build]
|
2022-10-05 02:46:14 +00:00
|
|
|
command = "npm run build"
|
2022-09-29 01:59:28 +00:00
|
|
|
publish = ".next"
|
|
|
|
|
2022-10-04 22:00:42 +00:00
|
|
|
# Include the doc dir in the build ignore command
|
|
|
|
ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF . ../doc/"
|
|
|
|
|
2024-04-11 14:34:51 +00:00
|
|
|
[build.environment]
|
|
|
|
# cache Cypress binary in local "node_modules" folder
|
|
|
|
# so Netlify caches it
|
|
|
|
CYPRESS_CACHE_FOLDER = "./node_modules/CypressBinary"
|
|
|
|
# set TERM variable for terminal output
|
|
|
|
TERM = "xterm"
|
|
|
|
|
2022-09-29 01:59:28 +00:00
|
|
|
[[plugins]]
|
|
|
|
package = "@netlify/plugin-nextjs"
|
|
|
|
|
|
|
|
[[plugins]]
|
|
|
|
package = "netlify-plugin-cypress"
|
|
|
|
|
2024-04-11 14:34:51 +00:00
|
|
|
# do not test the deployed URL
|
|
|
|
[plugins.inputs]
|
|
|
|
enable = false
|
|
|
|
# test the local site
|
|
|
|
[plugins.inputs.preBuild]
|
|
|
|
enable = true
|
|
|
|
start = 'npx netlify dev'
|
|
|
|
wait-on = 'http://localhost:8888'
|