🚚(service-worker) move service worker to features
The service worker is now in the features folder. It is more a feature than a core part of the app.
This commit is contained in:
@@ -44,7 +44,7 @@ const nextConfig = {
|
||||
if (!isServer && process.env.NEXT_PUBLIC_SW_DEACTIVATED !== 'true') {
|
||||
config.plugins.push(
|
||||
new InjectManifest({
|
||||
swSrc: './src/core/service-worker/service-worker.ts',
|
||||
swSrc: './src/features/service-worker/service-worker.ts',
|
||||
swDest: '../public/service-worker.js',
|
||||
include: [
|
||||
({ asset }) => {
|
||||
|
||||
Reference in New Issue
Block a user