summaryrefslogtreecommitdiffstats
path: root/netlify.toml
diff options
context:
space:
mode:
authorSerghei Iakovlev <egrep@protonmail.ch>2022-07-09 14:03:44 +0200
committerSerghei Iakovlev <egrep@protonmail.ch>2022-07-09 14:03:44 +0200
commite77bc7115a6376e46d83a30d5104e1a7806f8773 (patch)
treec2c1c8ef4d1f69b942d28458cd3ea0dad07ca15e /netlify.toml
parentbd653435e479c39becda0120882a5dcad8ba26cf (diff)
downloadgohugo-theme-ed-e77bc7115a6376e46d83a30d5104e1a7806f8773.tar.gz
Setup baseUrl at build stage
Diffstat (limited to 'netlify.toml')
-rw-r--r--netlify.toml2
1 files changed, 1 insertions, 1 deletions
diff --git a/netlify.toml b/netlify.toml
index 716b6dc..ad12e64 100644
--- a/netlify.toml
+++ b/netlify.toml
@@ -18,7 +18,7 @@
# here but we recommend using the Netlify UI for sensitive
# values to keep them out of your source repository.
[context.production]
- command = 'echo "$(env)\n~~~" > exampleSite/content/env.md; hugo --source=exampleSite --destination ../public'
+ command = 'hugo --source=exampleSite --baseURL ${URL} --destination ../public'
[context.production.environment]
HUGO_ENV = 'production'