-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnetlify.toml
More file actions
31 lines (28 loc) · 743 Bytes
/
netlify.toml
File metadata and controls
31 lines (28 loc) · 743 Bytes
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
[build]
publish = "build"
command = "yarn build"
# The following redirect is intended for use with most SPAs that handle routing internally.
[[redirects]]
from = "/*"
to = "/index.html"
status = 200
force = false
# [build]
# # command = "npm run build"
# # base = "./"
# publish = "./build"
# # The following redirect is intended for use with most SPAs that handle
# # routing internally.
# [[redirects]]
# from = "/*"
# to = "/index.html"
# status = 200
# force = true
# # query = {path = ":path"} # apply this rule for /?path=example
# # headers = {X-From = "Netlify"}
# # Redirect for api:
# [[redirects]]
# from = "/api/*"
# to = "https://api.example.com/:splat"
# status = 200
# force = true