-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathnetlify.toml
More file actions
46 lines (37 loc) · 1.44 KB
/
netlify.toml
File metadata and controls
46 lines (37 loc) · 1.44 KB
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
# Our build command used to include "bundle" to support Asciidoc format,
# making sure Asciidoctor gets installed, now Netlify seems to take care of it
[build]
publish = "public"
command = "chmod +x build.sh && ./build.sh"
HUGO_ENABLEGITINFO = "true"
# RUBY_VERSION = "2.6.2" is set as environment variable in Netlify UI, Deploy settings
# The Production Context applies to the branch you have configured as main branch to deploy:
[context.production.environment]
HUGO_VERSION = "0.123.1"
HUGO_ENV = "production"
# The Deploy Preview Context applies to every Deploy Preview you create:
[context.deploy-preview]
command = "chmod +x build.sh && ./build.sh -b $DEPLOY_PRIME_URL"
[context.deploy-preview.environment]
HUGO_VERSION = "0.123.1"
[context.branch-deploy]
command = "chmod +x build.sh && ./build.sh -b $DEPLOY_PRIME_URL"
# The Branch Deploy Context applies to all non-master branches deployed, whether they are in a Deploy Preview or not:
[context.branch-deploy.environment]
HUGO_VERSION = "0.123.1"
[[redirects]]
from = "/guides/guide/*"
to = "/guides/:splat"
status = 301
[[redirects]]
from = "/pricing"
to = "/cloud/pricing/"
status = 301
[[redirects]]
from = "/community-champions/joshua-boylan-long/"
to = "/community-champions/josh-long/"
status = 301
[[redirects]]
from = "/desktop/authorized/"
to = "https://app.testcontainers.cloud/api/auth/login"
status = 302