mirror of
https://github.com/elk-zone/elk
synced 2024-11-23 22:56:09 +09:00
fix: enable pwa module in production
This commit is contained in:
parent
d7236910a5
commit
01ecdcb663
@ -6,7 +6,7 @@ const isPreview = process.env.PULL_REQUEST === 'true'
|
||||
const pwa: VitePWANuxtOptions = {
|
||||
mode: isCI ? 'production' : 'development',
|
||||
// disabled PWA only on production
|
||||
disable: !isPreview && process.env.VITE_DEV_PWA !== 'true',
|
||||
disable: !isCI && process.env.VITE_DEV_PWA !== 'true',
|
||||
scope: '/',
|
||||
srcDir: './service-worker',
|
||||
filename: 'sw.ts',
|
||||
|
Loading…
Reference in New Issue
Block a user