-
Notifications
You must be signed in to change notification settings - Fork 1
/
netlify.toml
30 lines (28 loc) · 1.03 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
# https://docs.netlify.com/configure-builds/file-based-configuration/
[build]
command = "npm run build"
publish = "out"
[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"
[[plugins]]
package = "netlify-plugin-cypress"
# let's run tests against development server
# before building it (and testing the built site)
[plugins.inputs.preBuild]
enable = true
start = 'npm run next:dev'
wait-on = 'http://localhost:3000'
wait-on-timeout = '30' # seconds
# but we do not want to run tests against the deployed site
[plugins.inputs]
enable = false
# To enable using cache between builds, create a CYPRESS_CACHE_FOLDER and place the Cypress binary inside the node_modules folder.
[[plugins]]
package = "@sentry/netlify-build-plugin"
[plugins.inputs]
sentryOrg = "albertodeago"
sentryProject = "cloc-web"