-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathnetlify.toml
44 lines (37 loc) · 1.06 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# this Netlify project uses both functions
# and API redirects
[build]
command = "echo 'Netlify build command ...'"
publish = "public"
functions = "src/functions"
base = "tests/test-netlify-dev"
[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"
# do not print too many progress messages
CI = "1"
[dev]
command = "npx serve public"
targetPort = 3000
framework = "#custom"
[[redirects]]
from = "/api/*"
to = "/.netlify/functions/:splat"
status = 200
[[plugins]]
# local Cypress plugin will test our site after it is built
# in production, please use: package = "netlify-plugin-cypress"
package = "../../"
# the local site uses Netlify API redirects
# and Netlify functions
# let's run tests against Netlify Dev server
[plugins.inputs.preBuild]
enable = true
start = 'npx netlify dev'
wait-on = 'http://localhost:8888'
# do no run tests after deploy
[plugins.inputs]
enable = false