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
Hi dears. How can append separate file service worker with push notification code in workboxOpt, next.config.js when build. please please.
The text was updated successfully, but these errors were encountered:
i solved this. my next.config.js:
const path = require("path"); const nextOffline = require("next-offline"); module.exports = nextOffline({ workboxOpts: { importScripts: ["./sw.js"], mode: "production", swDest: path.join(__dirname, "public/service-worker.js") } });
and i create sw.js in public folder
Sorry, something went wrong.
No branches or pull requests
Hi dears.
How can append separate file service worker with push notification code in workboxOpt, next.config.js when build.
please please.
The text was updated successfully, but these errors were encountered: