🧑‍💻(frontend) env var service-worker dev mode

Add a new environment variable to enable or disable
the service worker in development mode.
By default, the service worker is disabled
in development mode, it can cause problems
when developing the application with the hmr.
It can creates useless log in the console
as well.
We can easily enable it by setting
NEXT_PUBLIC_SW_DEACTIVATED to false in the
.env.development file.
We will use this new var to not use the service
worder with the CI as well.
This commit is contained in:
Anthony LC
2024-06-14 16:12:39 +02:00
committed by Anthony LC
parent 3b77e1254e
commit c2aa5be8ff
6 changed files with 81 additions and 5 deletions

View File

@@ -1,2 +1,3 @@
NEXT_PUBLIC_API_ORIGIN=http://localhost:8071
NEXT_PUBLIC_SIGNALING_URL=ws://localhost:4444
NEXT_PUBLIC_SW_DEACTIVATED=true