forked from matrix-org/thirdroom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
netlify.toml
48 lines (38 loc) · 969 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
44
45
46
47
48
[build]
publish = "dist/"
[[redirects]]
from = "https://staging.thirdroom.io/*"
to = "https://staging--thirdroom.netlify.app/:splat"
status = 301
force = true
[[redirects]]
from = "/.well-known/*"
to = "/well-known/:splat"
status = 200
[[redirects]]
from = "/logviewer"
to = "/logviewer/index.html"
status = 200
[[redirects]]
from = "/storybook"
to = "/storybook/index.html"
status = 200
[[redirects]]
from = "/*"
to = "/index.html"
status = 200
[[headers]]
for = "/*"
[headers.values]
Cross-Origin-Opener-Policy = "same-origin"
Cross-Origin-Embedder-Policy = "require-corp"
[[headers]]
for = "/.well-known/*"
[headers.values]
Access-Control-Allow-Origin = "*"
[context.production.environment]
VITE_NETLIFY_DEPLOY_CONTEXT = "production"
[context.deploy-preview.environment]
VITE_NETLIFY_DEPLOY_CONTEXT = "deploy-preview"
[context.branch-deploy.environment]
VITE_NETLIFY_DEPLOY_CONTEXT = "branch-deploy"