1
0
mirror of https://github.com/elk-zone/elk synced 2024-11-27 22:38:11 +09:00

fix: enable pwa module in production

This commit is contained in:
Daniel Roe 2022-12-18 00:07:05 +00:00
parent d7236910a5
commit 01ecdcb663
No known key found for this signature in database
GPG Key ID: 22D5008E4F5D9B55

View File

@ -6,7 +6,7 @@ const isPreview = process.env.PULL_REQUEST === 'true'
const pwa: VitePWANuxtOptions = { const pwa: VitePWANuxtOptions = {
mode: isCI ? 'production' : 'development', mode: isCI ? 'production' : 'development',
// disabled PWA only on production // disabled PWA only on production
disable: !isPreview && process.env.VITE_DEV_PWA !== 'true', disable: !isCI && process.env.VITE_DEV_PWA !== 'true',
scope: '/', scope: '/',
srcDir: './service-worker', srcDir: './service-worker',
filename: 'sw.ts', filename: 'sw.ts',