Skip to content

Commit

Permalink
Merge pull request #60 from cobalthq/API-652/fix-netlify-deploy-previews
Browse files Browse the repository at this point in the history
API-652: Fix deploy preview config
  • Loading branch information
msdundar committed Mar 21, 2022
2 parents bd77859 + 3539ed5 commit ba4b51b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ resources/_gen/

# JS dependencies
node_modules/

# netlify CLI tmp folder
.netlify/
5 changes: 2 additions & 3 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
[build]
publish = "public"
command = "hugo --gc --minify --config='versions/v1/config.yaml' && hugo --gc --minify --config='versions/v2/config.yaml'"

[context.production.environment]
HUGO_VERSION = "0.92.2"

[context.deploy-preview]
command = "hugo -D -F --config='versions/v1/config.yaml' -b $DEPLOY_PRIME_URL && hugo -D -F --config='versions/v2/config.yaml' -b $DEPLOY_PRIME_URL"
command = "hugo --gc --minify --buildFuture --config='versions/v1/config.yaml' && hugo --gc --minify --buildFuture --config='versions/v2/config.yaml'"

[context.deploy-preview.environment]
HUGO_VERSION = "0.92.2"

[context.branch-deploy]
command = "hugo --gc --config='versions/v1/config.yaml' -b $DEPLOY_PRIME_URL && hugo --gc --config='versions/v2/config.yaml' -b $DEPLOY_PRIME_URL"
command = "hugo --gc --minify --buildFuture --config='versions/v1/config.yaml' && hugo --gc --minify --buildFuture --config='versions/v2/config.yaml'"

[context.branch-deploy.environment]
HUGO_VERSION = "0.92.2"
Expand Down

0 comments on commit ba4b51b

Please sign in to comment.