-
-
Notifications
You must be signed in to change notification settings - Fork 919
/
netlify.toml
47 lines (40 loc) · 1.01 KB
/
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
[build.environment]
NODE_VERSION = "18"
# Documentation
[build]
publish = "docs/.vitepress/dist"
command = "pnpm docs:build:ci"
# Alias for the next page
[[redirects]]
from = "https://v10.fakerjs.dev/*"
to = "https://next.fakerjs.dev/:splat"
status = 302
force = true
# Redirect to Discord server
[[redirects]]
from = "https://chat.fakerjs.dev"
to = "https://discord.gg/wq78qyhdSZ"
status = 302
force = true
[[redirects]]
from = "/chat"
to = "https://discord.gg/wq78qyhdSZ"
status = 302
force = true
# Redirect to StackBlitz playground
[[redirects]]
from = "https://new.fakerjs.dev"
to = "https://stackblitz.com/edit/faker-js-demo?file=index.ts"
status = 301
force = true
[[redirects]]
from = "/new"
to = "https://stackblitz.com/edit/faker-js-demo?file=index.ts"
status = 301
force = true
# Redirect old update page to new announcement section
[[redirects]]
from = "/update.html"
to = "https://fakerjs.dev/about/announcements/2022-01-14.html"
status = 301
force = true