forked from livebook-dev/livebook.dev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnetlify.toml
36 lines (28 loc) · 794 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
[build]
publish = "dist/"
command = "npm run build"
[build.environment]
NODE_VERSION = "18.18.0"
[[headers]]
for = "/badge/*"
[headers.values]
# Enable CORS for badge images
Access-Control-Allow-Origin = "*"
Cache-Control = "public, max-age=604800"
[[headers]]
for = "/_astro/*"
[headers.values]
# Assets include checksum in the name, so we cache them for long
Cache-Control = "public, max-age=31536000"
[[redirects]]
from = "/releases/*"
to = "https://livebook-releases.nyc3.cdn.digitaloceanspaces.com/:splat"
status = 302
[[redirects]]
from = "/pa/js/script.tagged-events.js"
to = "https://plausible.io/js/script.tagged-events.js"
status = 200
[[redirects]]
from = "/pa/api/event"
to = "https://plausible.io/api/event"
status = 200