You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
new target: static improvements introduced in nuxt 2.14.0
this pwa module, which generates sw.js during webpack build
static hosting platforms like Vercel
Versions
nuxt: 2.14.5
node: 12.x
Steps to reproduce
Create new nuxt app with target: 'static'
Add @nuxtjs/pwa module
Deploy to vercel (using build command: nuxt generate)
Observe sw.js is there (= ok)
Trigger web hook for re-deploy (will skip webpack build)
Observe sw.js is missing (= not ok)
What is Expected?
sw.js should be present after fast generate using previous build cache (skipping webpack build).
What is actually happening?
sw.js is missing after fast generate using previous build cache (skipping webpack build).
So it seems to me like the generated sw.js file is not included in the build cache which is stored on Vercel, and therefore it will get missed when doing fast re-deploys which skip the webpack build step.
Not sure if this issue belongs here, or rather in the actual nuxt.js repo...
The text was updated successfully, but these errors were encountered:
This issue is related to the combination of:
target: static
improvements introduced in nuxt 2.14.0sw.js
during webpack buildVersions
Steps to reproduce
target: 'static'
nuxt generate
)What is Expected?
sw.js
should be present after fast generate using previous build cache (skipping webpack build).What is actually happening?
sw.js
is missing after fast generate using previous build cache (skipping webpack build).So it seems to me like the generated
sw.js
file is not included in the build cache which is stored on Vercel, and therefore it will get missed when doing fast re-deploys which skip the webpack build step.Not sure if this issue belongs here, or rather in the actual nuxt.js repo...
The text was updated successfully, but these errors were encountered: