mirror of
https://github.com/jbowdre/virtuallypotato.git
synced 2024-12-22 19:22:17 +00:00
update netlify config
This commit is contained in:
parent
4be9781778
commit
ef92811f7b
3 changed files with 16 additions and 2 deletions
2
config/drafts/config.toml
Normal file
2
config/drafts/config.toml
Normal file
|
@ -0,0 +1,2 @@
|
|||
baseurl = "https://drafts.virtuallypotato.com/" # Include trailing slash
|
||||
|
1
config/drafts/params.toml
Normal file
1
config/drafts/params.toml
Normal file
|
@ -0,0 +1 @@
|
|||
comments = false
|
15
netlify.toml
15
netlify.toml
|
@ -2,10 +2,21 @@
|
|||
publish = "public"
|
||||
|
||||
[build.environment]
|
||||
HUGO_VERSION = "0.89.4"
|
||||
HUGO_VERSION = "0.96.0"
|
||||
|
||||
[context.production]
|
||||
command = "hugo"
|
||||
|
||||
[context.branch-deploy]
|
||||
[context.staging]
|
||||
command = "hugo --environment staging"
|
||||
[[headers]]
|
||||
for = "/*"
|
||||
[headers.values]
|
||||
X-Robots-Tag = "noindex"
|
||||
|
||||
[context.drafts]
|
||||
command = "hugo --environment drafts"
|
||||
[[headers]]
|
||||
for = "/*"
|
||||
[headers.values]
|
||||
X-Robots-Tag = "noindex"
|
Loading…
Reference in a new issue