We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello,
I've made the minimal configuration but yet no service-workers are generated.
Just have this next.config.js and build my nextJs application
//@ts-check const { composePlugins, withNx } = require('@nx/next'); /** * @type {import('@nx/next/plugins/with-nx').WithNxOptions} **/ const nextConfig = { nx: { svgr: true, }, workboxOpts: { swDest: 'public/service-worker.js', runtimeCaching: [{ urlPattern: /^http?.*/, handler: 'StaleWhileRevalidate', options: { cacheName: 'joimport-assets-cache', expiration: { maxEntries: 20, maxAgeSeconds: 600, }, }, }], } }; const plugins = [ // Add more Next.js plugins to this list if needed. require('next-offline'), withNx, ]; module.exports = composePlugins(...plugins)(nextConfig);
And here is the output
I can see my custom service workers but nothing more.
Versions. 5.0.5
Screenshots. Please see above
Expected.
Service worker generated and loaded
Tried Edge and Chrome (latest version)
Please, any help would be appreciate.
Thanks
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello,
I've made the minimal configuration but yet no service-workers are generated.
Just have this next.config.js and build my nextJs application
And here is the output
I can see my custom service workers but nothing more.
Versions.
5.0.5
Screenshots.
Please see above
Expected.
Service worker generated and loaded
Tried Edge and Chrome (latest version)
Please, any help would be appreciate.
Thanks
The text was updated successfully, but these errors were encountered: