-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
netlify.toml
43 lines (38 loc) · 1012 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
32
33
34
35
36
37
38
39
40
41
42
43
###########################
# BUILD COMMANDS
###########################
[build]
command = "npm run build"
# functions = "functions"
publish = "website/"
[dev]
command = "npm run watch" # Command to run when starting the dev server
# port = 8888 # Port that the dev server will be accessible on
publish = "website/" # Folder with the static content for _redirect file
autoLaunch = true # Launches the local server address in your browser
###########################
# HEADERS
###########################
[[headers]]
for = "/*"
[headers.values]
Access-Control-Allow-Origin = "*"
Access-Control-Allow-Headers = "Content-Type"
###########################
# REDIRECTS COMMANDS
###########################
[[redirects]]
from = "/demo.js"
to = "/demo.min.js"
status = 200
force = true
[[redirects]]
from = "/favicon.ico"
to = "/images/icons/favicon-16x16.png"
status = 301
force = false
[[redirects]]
from = "/*"
to = "/?ref=404"
status = 301
force = false