Skip to content
Snippets Groups Projects
Commit 445eb045 authored by Etienne LOUPIAS's avatar Etienne LOUPIAS
Browse files

fix(pwa): move config outside assets to fix serviceworker mismatch

parent c0aeb06d
Branches
Tags
1 merge request!480V2.2.0
......@@ -39,6 +39,7 @@
"assets": [
"src/favicon.ico",
"src/assets",
"src/config/config.json",
"src/sitemap.xml",
"src/robots.txt",
"src/ngsw-worker.js",
......
......@@ -7,7 +7,7 @@ services:
image: registry.forge.grandlyon.com/web-et-numerique/factory/pamn_plateforme-des-acteurs-de-la-mediation-numerique/pamn_client:${TAG}
volumes:
- ./nginx/local.conf:/etc/nginx/conf.d/default.conf
- ./src/assets/config.json:/usr/share/nginx/html/assets/config.json
- ./src/config/config.json:/usr/share/nginx/html/config/config.json
ports:
- 8030:8080
extra_hosts:
......
......@@ -6,6 +6,6 @@ services:
image: registry.forge.grandlyon.com/web-et-numerique/factory/pamn_plateforme-des-acteurs-de-la-mediation-numerique/pamn_client:${TAG}
volumes:
- ./dev.conf:/etc/nginx/conf.d/default.conf
- ./config.json:/usr/share/nginx/html/assets/config.json
- ./config.json:/usr/share/nginx/html/config/config.json
ports:
- 8030:8080
......@@ -81,7 +81,7 @@ import { StructureJoinComponent } from './structure/structure-join/structure-joi
ServiceWorkerModule.register('ngsw-worker.js', {
enabled: environment.production,
}),
RuntimeConfigLoaderModule,
RuntimeConfigLoaderModule.forRoot({ configUrl: './config/config.json' }),
NgxMatomoTrackerModule.forRoot({ mode: MatomoInitializationMode.AUTO_DEFERRED }),
NgxMatomoRouterModule,
],
......
File moved
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment