From e77bc7115a6376e46d83a30d5104e1a7806f8773 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Sat, 9 Jul 2022 14:03:44 +0200 Subject: Setup baseUrl at build stage --- netlify.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'netlify.toml') 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' -- cgit v1.2.3