fix: resolve pre-cache 404s and implement Bunker v7 with SWR

This commit is contained in:
2025-12-20 23:44:37 +01:00
parent b2c8ef222f
commit 7d5091a139
4 changed files with 81 additions and 93 deletions

View File

@@ -19,7 +19,7 @@ export const metadata: Metadata = {
template: "%s | Whisky Vault"
},
description: "Dein persönlicher Whisky-Begleiter zum Scannen und Verkosten.",
manifest: "/manifest.json",
manifest: "/manifest.webmanifest",
appleWebApp: {
capable: true,
statusBarStyle: "default",

View File

@@ -127,8 +127,10 @@ export default function UploadQueue() {
useEffect(() => {
const handleOnline = () => {
console.log('Online! Triggering background sync...');
syncQueue();
console.log('Online! Waiting 2s for network stability...');
setTimeout(() => {
syncQueue();
}, 2000);
};
window.addEventListener('online', handleOnline);