diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 255860e..4e7a0f6 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -31,5 +31,8 @@ jobs: script: | cd /root/hshop/ docker compose down - docker compose build --no-cache + docker compose build --no-cache frontend + docker compose build backend + docker compose build db-backup + docker compose build db docker compose up -d \ No newline at end of file diff --git a/frontend/plugins/pwaUpdate.client.ts b/frontend/plugins/pwaUpdate.client.ts index 1b1c023..4129f69 100644 --- a/frontend/plugins/pwaUpdate.client.ts +++ b/frontend/plugins/pwaUpdate.client.ts @@ -17,8 +17,7 @@ export default defineNuxtPlugin(() => { navigator.serviceWorker.addEventListener("message", (event) => { if ( event.data && - event.data.type === "VERSION_CHECK" && - isInstalledAsPWA + event.data.type === "VERSION_CHECK" ) { checkForUpdate(event.data.version); }