-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathnetlify.toml
More file actions
33 lines (28 loc) · 796 Bytes
/
Copy pathnetlify.toml
File metadata and controls
33 lines (28 loc) · 796 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
32
33
[build]
command = "echo 'Static site, no build needed'"
publish = "static"
# CORS headers for schema files (browser-based tooling needs cross-origin access)
[[headers]]
for = "/schemas/*"
[headers.values]
Access-Control-Allow-Origin = "*"
Access-Control-Allow-Methods = "OPTIONS, GET"
# Serve schemas locally (existing tools depend on these URLs)
[[redirects]]
from = "/schemas/previous/*"
to = "/schemas/0.9/:splat"
status = 200
[[redirects]]
from = "/schemas/latest/*"
to = "/schemas/1.0.3/:splat"
status = 200
[[redirects]]
from = "/schemas/snapshot/*"
to = "/schemas/1.0.3/:splat"
status = 200
# Redirect everything else to the new domain
[[redirects]]
from = "/*"
to = "https://open-workflow-specification.org/:splat"
status = 301
force = true