-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnetlify.toml
39 lines (33 loc) · 1.13 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
[template.environment]
WORDPRESS_URL = "WordPress URL without trailing slash. http://example.com"
STRIPE_PUBLISHABLE_KEY = "Stripe Publishable Key"
[build]
command = "npm run generate"
publish = "dist"
[[headers]]
for = "*.js" # js files should be set this way
[headers.values]
Cache-Control = "public, max-age=2592000"
[[headers]]
for = "*.css" # css files too
[headers.values]
Cache-Control = "public, max-age=2592000"
[[headers]]
for = "/*"
[headers.values]
Access-Control-Allow-Origin = "*"
Access-Control-Allow-Headers = "Content-Type"
X-XSS-Protection = "1; mode=block"
Referrer-Policy = "no-referrer"
X-Content-Type-Options = "nosniff"
[[headers]]
for = "/_nuxt/*"
[headers.values]
Cache-Control = "public, max-age=365000000"
Access-Control-Allow-Origin = "*"
Access-Control-Allow-Headers = "Content-Type"
[[redirects]]
from = "/*"
to = "https://secure.woonuxt.com/:splat"
status = 200
headers = {Access-Control-Allow-Origin = "*", Access-Control-Allow-Headers = "Content-Type, *", Access-Control-Allow-Methods = "GET, POST", Access-Control-Allow-Credentials= "true"}