mirror of https://github.com/AMT-Cheif/drift.git
Docs: Only use production environment var on production
This commit is contained in:
parent
ceed461a06
commit
0667191f14
|
@ -3,10 +3,13 @@
|
||||||
[build]
|
[build]
|
||||||
base = "docs"
|
base = "docs"
|
||||||
publish = "docs/public"
|
publish = "docs/public"
|
||||||
command = 'git submodule update --init --recursive && HUGO_ENV="production" hugo'
|
command = 'git submodule update --init --recursive && hugo'
|
||||||
|
|
||||||
[[redirects]]
|
[[redirects]]
|
||||||
from = "https://moor.netlify.com/*"
|
from = "https://moor.netlify.com/*"
|
||||||
to = "https://moor.simonbinder.eu/:splat"
|
to = "https://moor.simonbinder.eu/:splat"
|
||||||
status = 301
|
status = 301
|
||||||
force = true
|
force = true
|
||||||
|
|
||||||
|
[context.production]
|
||||||
|
environment = { HUGO_ENV="production" }
|
Loading…
Reference in New Issue