We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 340e5bb commit 5171377Copy full SHA for 5171377
vite.config.ts
@@ -93,6 +93,11 @@ export default defineConfig(({ mode }) => {
93
VitePWA({
94
disable: !featurePwa,
95
registerType: "autoUpdate",
96
+ // Remove the trailing slash so we can serve from e.g. /v/3 not just /v/3/
97
+ // This requires the corresponding service-worker-allowed header to be set.
98
+ // URLs are prefix matched so it's a compromise solution that could affect other
99
+ // paths sharing the same prefix
100
+ scope: process.env.BASE_URL?.replace(/\/$/, ""),
101
workbox: {
102
cacheId: pwaCacheId,
103
// Only precache language assets for the fallback language.
0 commit comments