-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnetlify.toml
46 lines (40 loc) · 1.26 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
[build.environment]
NODE_ENV = "production"
NODE_VERSION = "14"
NPM_VERSION = "7"
# Deploy previews are generated from pull requests
[context.deploy-preview]
command = "npm run prettier && npm run eslint && npm run build"
# Running Prettier and ESLint for production deploys would be redundant
# because we have already run them for deploy previews.
# Plus by not running them we might save a few seconds per deploy =D
[context.production]
command = "npm run build"
# Plausible proxy: https://plausible.io/docs/proxy/guides/netlify
[[redirects]]
from = "/elbisualp/js/script.js"
to = "https://plausible.io/js/plausible.outbound-links.js"
status = 200
[[redirects]]
from = "/elbisualp/api/event"
to = "https://plausible.io/api/event"
status = 202
[[redirects]]
from = "https://krapu.la/kysy"
to = "https://forms.gle/uyh3v8bbQUwnizEw5"
status = 302
[[redirects]]
from = "https://koodikrapula.netlify.app/*"
to = "https://koodikrapula.fi/:splat"
status = 301
force = true
[[redirects]]
from = "https://krapu.la/*"
to = "https://koodikrapula.fi/:splat"
status = 301
force = true
[[redirects]]
from = "https://www.krapu.la/*"
to = "https://koodikrapula.fi/:splat"
status = 301
force = true