-
Notifications
You must be signed in to change notification settings - Fork 2
/
netlify.toml
57 lines (51 loc) · 1.95 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
55
56
57
[[plugins]]
package = "./netlify/plugins/github-deployments"
# Temporarily specify the Netlify next.js version to enable testing.
# Disabled while testing adding the runtime plugin from the package.json.
# [[plugins]]
# package = "@netlify/plugin-nextjs"
# Force all access through the managed TLD (default). HTTP
[[redirects]]
from = 'http://oak-web-application.netlify.app/*'
to = 'https://www.thenational.academy/:splat'
status = 302
force = true
# Force all access through the managed TLD (default). HTTPS
[[redirects]]
from = 'https://oak-web-application.netlify.app/*'
to = 'https://www.thenational.academy/:splat'
status = 302
force = true
# Force all access through the managed TLD (main branch). HTTP
[[redirects]]
from = 'http://main--oak-web-application.netlify.app/*'
to = 'https://www.thenational.academy/:splat'
status = 302
force = true
# Force all access through the managed TLD (main branch). HTTPS
[[redirects]]
from = 'https://main--oak-web-application.netlify.app/*'
to = 'https://www.thenational.academy/:splat'
status = 302
force = true
# Cancel production builds which are not versioning commits.
[context.production]
ignore = "node scripts/build/cancel_netlify_build.js"
# Report production builds into Slack using custom plugin.
[[context.production.plugins]]
package = "./netlify/plugins/slack-reporting"
# On preview and branch deploys, use the subdomain redirect edge function
# to force all access through our managed TLD.
# Note that the edge function is deployed in every context, but only
# has a path assigned in preview and branch deploys, effectively
# disabling it in production.
[[context.deploy-preview.edge_functions]]
path = '/*'
function = 'subdomain-redirect'
[[context.branch-deploy.edge_functions]]
path = '/*'
function = 'subdomain-redirect'
# Workaround for Netlify no reading .env.production.local in the new runtime yet.
# All Netlify builds are production from the Nex† perspective.
[functions]
included_files = [".env.production.local"]