mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 12:09:51 +02:00
fix: remove pwa
This commit is contained in:
1 parent
b50ee23a26
commit
8cb523dd06
1 file changed
-16
@@ -4,7 +4,6 @@ import { wrapper } from "@blitzkit/i18n";
|
|||||||
import locales from "@blitzkit/i18n/locales.json";
|
import locales from "@blitzkit/i18n/locales.json";
|
||||||
import strings from "@blitzkit/i18n/strings/en.json";
|
import strings from "@blitzkit/i18n/strings/en.json";
|
||||||
import { mauve, mauveDark } from "@radix-ui/colors";
|
import { mauve, mauveDark } from "@radix-ui/colors";
|
||||||
import AstroPWA from "@vite-pwa/astro";
|
|
||||||
import favicons from "astro-favicons";
|
import favicons from "astro-favicons";
|
||||||
import { defineConfig } from "astro/config";
|
import { defineConfig } from "astro/config";
|
||||||
import packageJSON from "../../package.json";
|
import packageJSON from "../../package.json";
|
||||||
@@ -94,21 +93,6 @@ export default defineConfig({
|
|||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
|
|
||||||
AstroPWA({
|
|
||||||
manifest: false,
|
|
||||||
devOptions: { enabled: true },
|
|
||||||
workbox: {
|
|
||||||
globPatterns: ["**/*.{html,css,js,png,webp,svg,xml,json}"],
|
|
||||||
runtimeCaching: [
|
|
||||||
{
|
|
||||||
urlPattern: ({ url }) =>
|
|
||||||
url.href.startsWith(import.meta.env.PUBLIC_ASSET_BASE),
|
|
||||||
handler: "NetworkFirst",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
}),
|
|
||||||
|
|
||||||
react(),
|
react(),
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
Reference in new issue
Block a user