start url

This commit is contained in:
hamid zarghami
2025-03-05 15:06:17 +03:30
parent 49032f3b2b
commit 6fba801ee9
3 changed files with 98 additions and 5 deletions
+4 -3
View File
@@ -18,6 +18,7 @@ export default defineConfig({
theme_color: "#ffffff",
background_color: "#ffffff",
display: "standalone",
start_url: "/dashboard", // صفحه اصلی PWA
icons: [
{
src: "/icon-192x192.png",
@@ -39,10 +40,10 @@ export default defineConfig({
options: {
cacheName: "api-cache",
expiration: {
maxEntries: 50, // تعداد درخواست‌های کش‌شده
maxAgeSeconds: 60 * 60 * 24, // مدت‌زمان نگهداری در کش (اینجا 1 روز)
maxEntries: 50,
maxAgeSeconds: 60 * 60 * 24,
},
networkTimeoutSeconds: 10, // بعد از 10 ثانیه اگر پاسخ نداد، از کش استفاده کن
networkTimeoutSeconds: 10,
},
},
],