deploy: bypass PWA service worker for downloads
Some checks failed
CI / verify (push) Has been cancelled
CI / print-rust (push) Has been cancelled

This commit is contained in:
Admin 2026-09-23 23:10:55 +00:00
parent 927d9b298f
commit 098b3c83d8
2 changed files with 2 additions and 1 deletions

View File

@ -59,7 +59,7 @@ export function DesktopDownloadsPage({ onBack }: { onBack: () => void }) {
<div className="desktop-download-grid">
{downloads.map(({ href, label, detail, icon: Icon }) => (
<a className="desktop-download-card" href={href} key={href}>
<a className="desktop-download-card" href={href} download key={href}>
<span className="desktop-download-icon"><Icon size={21} /></span>
<span className="desktop-download-copy">
<strong>{label}</strong>

View File

@ -27,6 +27,7 @@ export default defineConfig({
workbox: {
cleanupOutdatedCaches: true,
navigateFallback: '/index.html',
navigateFallbackDenylist: [/^\/downloads\//, /^\/api\//],
globPatterns: ['**/*.{js,css,html,svg,wasm,png}']
}
})