Skip to content

Commit b6c7f50

Browse files
committed
fix: disable pwa in netlify
1 parent a510be5 commit b6c7f50

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

astro.config.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ export default defineConfig({
4848
base: "/",
4949
scope: "/",
5050
includeAssets: ["favicon.svg"],
51+
registerType: "autoUpdate",
5152
manifest: {
5253
name: "ChatGPT",
5354
lang: "zh-cn",
@@ -76,9 +77,10 @@ export default defineConfig({
7677
}
7778
]
7879
},
80+
disable: !!process.env.NETLIFY,
7981
workbox: {
8082
navigateFallback: "/404",
81-
globPatterns: ["**/*.{css,js,html,svg,png,ico,txt,astro}"]
83+
globPatterns: ["**/*.{css,js,html,svg,png,ico,txt}"]
8284
},
8385
devOptions: {
8486
enabled: true,

0 commit comments

Comments
 (0)