diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 591b2b02..a1524566 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -678,8 +678,8 @@ importers: version: 3.3.2 devDependencies: '@vite-pwa/astro': - specifier: file:vite-pwa-astro-0.1.3.tgz - version: file:website/vite-pwa-astro-0.1.3.tgz(astro@2.3.2)(vite-plugin-pwa@0.16.5) + specifier: ^0.1.4 + version: 0.1.4(astro@2.3.2)(vite-plugin-pwa@0.16.5) html-escaper: specifier: ^3.0.3 version: 3.0.3 @@ -4790,6 +4790,16 @@ packages: - '@codemirror/search' dev: false + /@vite-pwa/astro@0.1.4(astro@2.3.2)(vite-plugin-pwa@0.16.5): + resolution: {integrity: sha512-OmpaMmF9ogxI/YeUFNS0VDhaoPWvoVdRg0iEiQVz4oIQ+AdEjKNx7h0Xbz9p10/tA8EPX+/ugBMUT0xERMAuyQ==} + peerDependencies: + astro: ^1.6.0 || ^2.0.0 || ^3.0.0 + vite-plugin-pwa: '>=0.16.5 <1' + dependencies: + astro: 2.3.2(@types/node@18.16.3) + vite-plugin-pwa: 0.16.5(vite@4.4.5)(workbox-build@7.0.0)(workbox-window@7.0.0) + dev: true + /@vitejs/plugin-react@4.0.0(vite@4.3.3): resolution: {integrity: sha512-HX0XzMjL3hhOYm+0s95pb0Z7F8O81G7joUHgfDd/9J/ZZf5k4xX6QAMFkKsHFxaHlf6X7GD7+XuaZ66ULiJuhQ==} engines: {node: ^14.18.0 || >=16.0.0} @@ -14172,16 +14182,3 @@ packages: /zwitch@2.0.4: resolution: {integrity: sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==} - - file:website/vite-pwa-astro-0.1.3.tgz(astro@2.3.2)(vite-plugin-pwa@0.16.5): - resolution: {integrity: sha512-CI7RC86z6WzQ1pskqHLYPaMhphU8B6QphrkQ9hHplhA7D4zpeTW7pKStn5dysHfM8uXliIX4TykyNquxop8AQA==, tarball: file:website/vite-pwa-astro-0.1.3.tgz} - id: file:website/vite-pwa-astro-0.1.3.tgz - name: '@vite-pwa/astro' - version: 0.1.3 - peerDependencies: - astro: ^1.6.0 || ^2.0.0 || ^3.0.0 - vite-plugin-pwa: '>=0.16.5 <1' - dependencies: - astro: 2.3.2(@types/node@18.16.3) - vite-plugin-pwa: 0.16.5(vite@4.4.5)(workbox-build@7.0.0)(workbox-window@7.0.0) - dev: true diff --git a/website/astro.config.mjs b/website/astro.config.mjs index 83de5f26..f8fceaf7 100644 --- a/website/astro.config.mjs +++ b/website/astro.config.mjs @@ -50,6 +50,7 @@ export default defineConfig({ mdx(options), tailwind(), AstroPWA({ + experimental: { directoryAndTrailingSlashHandler: true }, registerType: 'autoUpdate', injectRegister: 'auto', workbox: { diff --git a/website/package.json b/website/package.json index ec3068b4..f766c420 100644 --- a/website/package.json +++ b/website/package.json @@ -60,7 +60,7 @@ "tailwindcss": "^3.3.2" }, "devDependencies": { - "@vite-pwa/astro": "file:vite-pwa-astro-0.1.3.tgz", + "@vite-pwa/astro": "^0.1.4", "html-escaper": "^3.0.3", "vite-plugin-pwa": "^0.16.5", "workbox-window": "^7.0.0" diff --git a/website/vite-pwa-astro-0.1.3.tgz b/website/vite-pwa-astro-0.1.3.tgz deleted file mode 100644 index ddcb26be..00000000 Binary files a/website/vite-pwa-astro-0.1.3.tgz and /dev/null differ