mirror of
https://github.com/jbowdre/runtimeterror.git
synced 2024-11-22 23:12:19 +00:00
create config for preview builds
This commit is contained in:
parent
39a2b6d624
commit
f2e1027f40
2 changed files with 28 additions and 6 deletions
1
config/preview/hugo.toml
Normal file
1
config/preview/hugo.toml
Normal file
|
@ -0,0 +1 @@
|
||||||
|
baseURL = "https://preview--runtimeterrordev.netlify.app"
|
33
netlify.toml
33
netlify.toml
|
@ -1,16 +1,37 @@
|
||||||
[build]
|
[build]
|
||||||
command = """
|
|
||||||
hugo --minify
|
|
||||||
npm i @torchlight-api/torchlight-cli
|
|
||||||
npx torchlight
|
|
||||||
"""
|
|
||||||
publish = "public"
|
publish = "public"
|
||||||
|
|
||||||
[build.environment]
|
[build.environment]
|
||||||
HUGO_VERSION = "0.111.3"
|
HUGO_VERSION = "0.111.3"
|
||||||
|
|
||||||
[context.production]
|
[context.production]
|
||||||
command = "hugo"
|
command = """
|
||||||
|
hugo --minify
|
||||||
|
npm i @torchlight-api/torchlight-cli
|
||||||
|
npx torchlight
|
||||||
|
"""
|
||||||
|
|
||||||
|
[context.preview]
|
||||||
|
command = """
|
||||||
|
hugo --minify --environment preview
|
||||||
|
npm i @torchlight-api/torchlight-cli
|
||||||
|
npx torchlight
|
||||||
|
"""
|
||||||
|
[[headers]]
|
||||||
|
for = "/*"
|
||||||
|
[headers.values]
|
||||||
|
X-Robots-Tag = "noindex"
|
||||||
|
|
||||||
|
[context.drafts]
|
||||||
|
command = """
|
||||||
|
hugo --minify --environment drafts -D
|
||||||
|
npm i @torchlight-api/torchlight-cli
|
||||||
|
npx torchlight
|
||||||
|
"""
|
||||||
|
[[headers]]
|
||||||
|
for = "/*"
|
||||||
|
[headers.values]
|
||||||
|
X-Robots-Tag = "noindex"
|
||||||
|
|
||||||
[[redirects]]
|
[[redirects]]
|
||||||
from = "/*"
|
from = "/*"
|
||||||
|
|
Loading…
Reference in a new issue