diff --git a/assets/service-worker/handlers/catch.ts b/assets/service-worker/handlers/catch.ts index 5e43c752f..b8b6addc1 100644 --- a/assets/service-worker/handlers/catch.ts +++ b/assets/service-worker/handlers/catch.ts @@ -13,6 +13,7 @@ function catchHandler(config) { } fallback = baseURL.pathname.replace(/\/+$/, '') + fallback } + console.log(options.request, fallback) return ( (await cache.match(fallback)) || Response.error() ); diff --git a/netlify.toml b/netlify.toml index 45991a2ec..bebe7b89d 100644 --- a/netlify.toml +++ b/netlify.toml @@ -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 = "/*"