Skip to content

Commit

Permalink
docs: fix netlify deploy url
Browse files Browse the repository at this point in the history
Fixes the URL from Netlify given to Hugo
to build absolute URLs with the proper base.

Signed-off-by: Tim Jones <[email protected]>
  • Loading branch information
TimJones committed Apr 20, 2022
1 parent e8cbedb commit 486f79b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
[build]
command = "cd website && hugo --gc --minify --baseURL $DEPLOY_PRIME_URL"
publish = "website/public"

[build.environment]
BUILD_COMMAND = "hugo --source website --gc --minify"
HUGO_VERSION = "0.95.0"
NODE_VERSION = "16.13.2"

[context.production]
command = "$BUILD_COMMAND --baseURL $URL"

[context.deploy-preview]
command = "$BUILD_COMMAND --baseURL $DEPLOY_PRIME_URL"

0 comments on commit 486f79b

Please sign in to comment.