forked from faker-js/faker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
netlify.toml
29 lines (25 loc) · 749 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
[build.environment]
NODE_VERSION = "16"
NPM_FLAGS = "--version" # prevent Netlify npm install
# Documentation
[build]
publish = "docs/.vitepress/dist"
command = "npx pnpm i --store=node_modules/.pnpm-store && npm run docs:build:ci"
# Redirect to Discord server
[[redirects]]
from = "https://chat.fakerjs.dev"
to = "https://discord.com/invite/4qDjAmDj4P"
status = 301
force = true
# Redirect to StackBlitz playground
[[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