-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathnetlify.toml
39 lines (33 loc) · 1008 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
# Production context:
# All deploys from the main repository branch
# will inherit these settings.
[context.production]
[context.production.environment]
JEKYLL_ENV = "production"
# Deploy Preview context:
# All deploys generated from a pull/merge request
# will inherit these settings.
[context.deploy-preview]
command = "bundle exec jekyll build --future"
[context.deploy-preview.environment]
JEKYLL_ENV = "development"
# Branch deploy context:
# All deploys that are not from a pull/merge request
# or from the production branch will inherit these settings.
[context.branch-deploy]
JEKYLL_ENV = "development"
[[redirects]]
from = "/:year/:month/:date/:slug"
to = "https://techworkerscoalition.org/blog/:year/:month/:date/:slug"
status = 301
force = true
[[redirects]]
from = "/subscribe/"
to = "https://techworkerscoalition.org/subscribe"
status = 301
force = true
[[redirects]]
from = "/*"
to = "https://techworkerscoalition.org/blog"
status = 301
force = true