-
Notifications
You must be signed in to change notification settings - Fork 0
/
netlify.toml
49 lines (39 loc) · 945 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
41
42
43
44
45
46
47
48
49
[build]
publish = "public"
functions = "functions"
[build.environment]
NODE_VERSION = "20.13.1"
NPM_VERSION = "10.5.2"
[context.production]
command = "npm run build"
[context.deploy-preview]
command = "npm run build -- -b $DEPLOY_PRIME_URL"
[context.branch-deploy]
command = "npm run build -- -b $DEPLOY_PRIME_URL"
[context.next]
command = "npm run build"
[context.next.environment]
HUGO_ENV = "next"
[[redirects]]
# redirect old blog post to new one
from = "/blog/rokt-tim-koko/*"
to = "/blog/tim-koko/"
status = 301
force = true
[[redirects]]
# redirect old en blog post to new one
from = "/en/blog/rokt-tim-koko/*"
to = "/en/blog/tim-koko/"
status = 301
force = true
[dev]
framework = "#custom"
command = "npm run start"
targetPort = 1313
port = 8888
publish = "public"
autoLaunch = false
[[headers]]
for = "/*"
[headers.values]
Content-Security-Policy = "connect-src * 'self';"