🚚(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:
Anthony LC
2024-06-26 16:55:36 +02:00
committed by Anthony LC
parent 287a5b3bff
commit d87c278cce
12 changed files with 1 additions and 1 deletions

View File

@@ -44,7 +44,7 @@ const nextConfig = {
if (!isServer && process.env.NEXT_PUBLIC_SW_DEACTIVATED !== 'true') { if (!isServer && process.env.NEXT_PUBLIC_SW_DEACTIVATED !== 'true') {
config.plugins.push( config.plugins.push(
new InjectManifest({ new InjectManifest({
swSrc: './src/core/service-worker/service-worker.ts', swSrc: './src/features/service-worker/service-worker.ts',
swDest: '../public/service-worker.js', swDest: '../public/service-worker.js',
include: [ include: [
({ asset }) => { ({ asset }) => {