forked from asyncapi/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
netlify.toml
38 lines (31 loc) · 954 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
[[headers]]
for = "/*"
[headers.values]
X-Frame-Options = "ALLOW-FROM https://www.youtube.com/"
Access-Control-Allow-Origin = "*"
[build]
command = "npm run build && npm run export"
functions = "netlify/functions"
publish = "out"
[build.environment]
NETLIFY_NEXT_PLUGIN_SKIP = "true"
NODE_VERSION = "16.16.0"
NPM_VERSION = "8.11.0"
# Used by JSON Schema definitions fetched directly from AsyncAPI website
[[redirects]]
from = "/definitions"
to = "https://github.com/asyncapi/spec-json-schemas/tree/master/schemas"
status = 200
[[edge_functions]]
function = "serve-definitions"
path = "/definitions/*"
# Used by JSON Schema definitions fetched from schemastore.org
[[redirects]]
from = "/schema-store"
to = "https://github.com/asyncapi/spec-json-schemas/tree/master/schemas"
status = 200
[[edge_functions]]
function = "serve-definitions"
path = "/schema-store/*"
[[plugins]]
package = "@netlify/plugin-nextjs"