Skip to content

Commit

Permalink
chore(netlify): change environment to development on deploy preview c…
Browse files Browse the repository at this point in the history
…ontext
  • Loading branch information
razonyang committed Aug 2, 2022
1 parent e5d5504 commit 5416629
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions assets/service-worker/handlers/catch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ function catchHandler(config) {
}
fallback = baseURL.pathname.replace(/\/+$/, '') + fallback
}
console.log(options.request, fallback)
return (
(await cache.match(fallback)) || Response.error()
);
Expand Down
2 changes: 1 addition & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ command = "cd exampleSite && npm install && hugo --minify --themesDir=../../ --t
HUGO_ENV = "production"

[context.deploy-preview]
command = "cd exampleSite && npm install && hugo --minify --themesDir=../../ --theme=repo -b=$DEPLOY_PRIME_URL"
command = "cd exampleSite && npm install && hugo --minify --themesDir=../../ --theme=repo -e development -b=$DEPLOY_PRIME_URL"

[[headers]]
for = "/*"
Expand Down

0 comments on commit 5416629

Please sign in to comment.