forked from faker-js/faker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
netlify.toml
54 lines (46 loc) · 1.12 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
48
49
50
51
52
53
54
[build.environment]
NODE_VERSION = "18"
# Documentation
[build]
publish = "docs/.vitepress/dist"
command = "pnpm docs:build:ci"
# Alias for the main page
[[redirects]]
from = "https://v8.fakerjs.dev"
to = "https://fakerjs.dev"
status = 302
force = true
# Alias for the next page
[[redirects]]
from = "https://v9.fakerjs.dev"
to = "https://next.fakerjs.dev"
status = 302
force = true
# Redirect to Discord server
[[redirects]]
from = "https://chat.fakerjs.dev"
to = "https://discord.gg/faker-js"
status = 301
force = true
[[redirects]]
from = "/chat"
to = "https://discord.gg/faker-js"
status = 301
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