forked from slidevjs/slidev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
netlify.toml
executable file
·40 lines (33 loc) · 748 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
[build]
publish = "docs/.vitepress/dist"
command = "pnpm run docs:build"
[build.environment]
NODE_VERSION = "20"
NODE_OPTIONS = "--max-old-space-size=8192"
PLAYWRIGHT_BROWSERS_PATH = "0"
[[redirects]]
from = "/new"
to = "https://stackblitz.com/github/slidevjs/new?file=slides.md"
status = 302
force = true
[[redirects]]
from = "/demo/composable-vue/*"
to = "/demo/composable-vue/index.html"
status = 200
[[redirects]]
from = "/demo/starter/*"
to = "/demo/starter/index.html"
status = 200
[[redirects]]
from = "/demo/vue-runner/*"
to = "/demo/vue-runner/index.html"
status = 200
[[redirects]]
from = "https://slidev.antfu.me/*"
to = "https://sli.dev/:splat"
status = 301
force = true
[[redirects]]
from = "/*"
to = "/index.html"
status = 200