diff --git a/pcomparator/next.config.ts b/pcomparator/next.config.ts index a3ab3df..2336fdb 100644 --- a/pcomparator/next.config.ts +++ b/pcomparator/next.config.ts @@ -54,6 +54,7 @@ const nextConfig = (): NextConfig => { const withPWA = withPWAInit({ dest: "public", + disable: false }); -module.exports = nextConfig(); +module.exports = withPWA(nextConfig()); diff --git a/pcomparator/public/sw.js b/pcomparator/public/sw.js index 81442fe..027d26e 100644 --- a/pcomparator/public/sw.js +++ b/pcomparator/public/sw.js @@ -1 +1 @@ -if(!self.define){let e,s={};const i=(i,a)=>(i=new URL(i+".js",a).href,s[i]||new Promise((s=>{if("document"in self){const e=document.createElement("script");e.src=i,e.onload=s,document.head.appendChild(e)}else e=i,importScripts(i),s()})).then((()=>{let e=s[i];if(!e)throw new Error(`Module ${i} didn’t register its module`);return e})));self.define=(a,t)=>{const n=e||("document"in self?document.currentScript.src:"")||location.href;if(s[n])return;let c={};const r=e=>i(e,n),o={module:{uri:n},exports:c,require:r};s[n]=Promise.all(a.map((e=>o[e]||r(e)))).then((e=>(t(...e),c)))}}define(["./workbox-f1770938"],(function(e){"use strict";importScripts(),self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"/_next/static/TsF_TUVp5OQ3RUlViPMmF/_buildManifest.js",revision:"27cff35029d0f5090ddb6f5b508df290"},{url:"/_next/static/TsF_TUVp5OQ3RUlViPMmF/_ssgManifest.js",revision:"b6652df95db52feb4daf4eca35380933"},{url:"/_next/static/chunks/128-31dbe0f76bbbd36a.js",revision:"TsF_TUVp5OQ3RUlViPMmF"},{url:"/_next/static/chunks/151-8fda21ef84762abb.js",revision:"TsF_TUVp5OQ3RUlViPMmF"},{url:"/_next/static/chunks/263.3ca24e9aea7faea7.js",revision:"3ca24e9aea7faea7"},{url:"/_next/static/chunks/279-89c31bafd7b6bf5e.js",revision:"TsF_TUVp5OQ3RUlViPMmF"},{url:"/_next/static/chunks/290.3666e53ebc075411.js",revision:"3666e53ebc075411"},{url:"/_next/static/chunks/36-1d98fbbdfa5295bc.js",revision:"TsF_TUVp5OQ3RUlViPMmF"},{url:"/_next/static/chunks/40-f79344098f57116e.js",revision:"TsF_TUVp5OQ3RUlViPMmF"},{url:"/_next/static/chunks/414-141e816f779212a2.js",revision:"TsF_TUVp5OQ3RUlViPMmF"},{url:"/_next/static/chunks/478-6503b3bcf9d3842b.js",revision:"TsF_TUVp5OQ3RUlViPMmF"},{url:"/_next/static/chunks/492-ff4a3b66021b1de7.js",revision:"TsF_TUVp5OQ3RUlViPMmF"},{url:"/_next/static/chunks/4bd1b696-a6847c286c0f091f.js",revision:"TsF_TUVp5OQ3RUlViPMmF"},{url:"/_next/static/chunks/517-32e28d900e13470a.js",revision:"TsF_TUVp5OQ3RUlViPMmF"},{url:"/_next/static/chunks/55-2e6bbe67ef6f0992.js",revision:"TsF_TUVp5OQ3RUlViPMmF"},{url:"/_next/static/chunks/597-3d8ca415aa1fb63f.js",revision:"TsF_TUVp5OQ3RUlViPMmF"},{url:"/_next/static/chunks/607.5b737bb7f6e04aaf.js",revision:"5b737bb7f6e04aaf"},{url:"/_next/static/chunks/73-d6ff32a3d55ac442.js",revision:"TsF_TUVp5OQ3RUlViPMmF"},{url:"/_next/static/chunks/app/%5Blocale%5D/dashboard/layout-4915dc6a3d668fbe.js",revision:"TsF_TUVp5OQ3RUlViPMmF"},{url:"/_next/static/chunks/app/%5Blocale%5D/dashboard/my-prices/page-4b3fbc2592be14e0.js",revision:"TsF_TUVp5OQ3RUlViPMmF"},{url:"/_next/static/chunks/app/%5Blocale%5D/dashboard/page-07ee9b09e1c181a4.js",revision:"TsF_TUVp5OQ3RUlViPMmF"},{url:"/_next/static/chunks/app/%5Blocale%5D/layout-c4189b93f6e3afd4.js",revision:"TsF_TUVp5OQ3RUlViPMmF"},{url:"/_next/static/chunks/app/%5Blocale%5D/page-9997f81a1d0c2d9a.js",revision:"TsF_TUVp5OQ3RUlViPMmF"},{url:"/_next/static/chunks/app/%5Blocale%5D/settings/page-3c742d063c129e94.js",revision:"TsF_TUVp5OQ3RUlViPMmF"},{url:"/_next/static/chunks/app/_not-found/page-2c7b7d1cf07bd090.js",revision:"TsF_TUVp5OQ3RUlViPMmF"},{url:"/_next/static/chunks/app/api/auth/%5B...nextauth%5D/route-c41eb90ff51a6b13.js",revision:"TsF_TUVp5OQ3RUlViPMmF"},{url:"/_next/static/chunks/app/api/v1/prices/route-bd247f9a30dcd52f.js",revision:"TsF_TUVp5OQ3RUlViPMmF"},{url:"/_next/static/chunks/app/api/v1/user/%5Bid%5D/account/route-d5cf841acfafc593.js",revision:"TsF_TUVp5OQ3RUlViPMmF"},{url:"/_next/static/chunks/app/api/v1/user/%5Bid%5D/prices/%5BpriceId%5D/route-ea06ee6ee40971ca.js",revision:"TsF_TUVp5OQ3RUlViPMmF"},{url:"/_next/static/chunks/app/api/v1/user/%5Bid%5D/prices/route-f6279046312c76c0.js",revision:"TsF_TUVp5OQ3RUlViPMmF"},{url:"/_next/static/chunks/app/api/v1/user/%5Bid%5D/profile/avatar/route-f4d01b3c2be0a2e2.js",revision:"TsF_TUVp5OQ3RUlViPMmF"},{url:"/_next/static/chunks/app/api/v1/user/%5Bid%5D/profile/route-8e3331908e6f248f.js",revision:"TsF_TUVp5OQ3RUlViPMmF"},{url:"/_next/static/chunks/e37a0b60-b74be3d42787b18d.js",revision:"TsF_TUVp5OQ3RUlViPMmF"},{url:"/_next/static/chunks/framework-f66176bb897dc684.js",revision:"TsF_TUVp5OQ3RUlViPMmF"},{url:"/_next/static/chunks/main-3f6e75635224f655.js",revision:"TsF_TUVp5OQ3RUlViPMmF"},{url:"/_next/static/chunks/main-app-499b908c1e14996d.js",revision:"TsF_TUVp5OQ3RUlViPMmF"},{url:"/_next/static/chunks/pages/_app-6a626577ffa902a4.js",revision:"TsF_TUVp5OQ3RUlViPMmF"},{url:"/_next/static/chunks/pages/_error-1be831200e60c5c0.js",revision:"TsF_TUVp5OQ3RUlViPMmF"},{url:"/_next/static/chunks/polyfills-42372ed130431b0a.js",revision:"846118c33b2c0e922d7b3a7676f81f6f"},{url:"/_next/static/chunks/webpack-45c02304d64425a0.js",revision:"TsF_TUVp5OQ3RUlViPMmF"},{url:"/_next/static/css/05cc92c67fe67fb5.css",revision:"05cc92c67fe67fb5"},{url:"/_next/static/css/99fb210130ed49f3.css",revision:"99fb210130ed49f3"},{url:"/_next/static/media/26a46d62cd723877-s.woff2",revision:"befd9c0fdfa3d8a645d5f95717ed6420"},{url:"/_next/static/media/55c55f0601d81cf3-s.woff2",revision:"43828e14271c77b87e3ed582dbff9f74"},{url:"/_next/static/media/581909926a08bbc8-s.woff2",revision:"f0b86e7c24f455280b8df606b89af891"},{url:"/_next/static/media/6d93bde91c0c2823-s.woff2",revision:"621a07228c8ccbfd647918f1021b4868"},{url:"/_next/static/media/97e0cb1ae144a2a9-s.woff2",revision:"e360c61c5bd8d90639fd4503c829c2dc"},{url:"/_next/static/media/a34f9d1faa5f3315-s.p.woff2",revision:"d4fe31e6a2aebc06b8d6e558c9141119"},{url:"/_next/static/media/df0a9ae256c0569c-s.woff2",revision:"d54db44de5ccb18886ece2fda72bdfe0"},{url:"/_next/static/media/logo.af74964e.png",revision:"47b84a04dca72c139e6f1c360998ae6e"},{url:"/manifest.json",revision:"180c42e2d45dc89fa94620a7942e4823"},{url:"/openapi.yaml",revision:"202d5999ac057412dbfbe0b1a5be9f3d"},{url:"/service-worker.js",revision:"4f5b998def3df2d4a67f307e8fb251ad"},{url:"/static/algolia.png",revision:"d36577ab9bc617c8545cff97181861b7"},{url:"/static/images/templates/products/milk-template.webp",revision:"0bc05700930282f2b066755cf7bc6969"},{url:"/static/logo.png",revision:"47b84a04dca72c139e6f1c360998ae6e"}],{ignoreURLParametersMatching:[/^utm_/,/^fbclid$/]}),e.cleanupOutdatedCaches(),e.registerRoute("/",new e.NetworkFirst({cacheName:"start-url",plugins:[{cacheWillUpdate:function(e){return _ref.apply(this,arguments)}}]}),"GET"),e.registerRoute(/^https:\/\/fonts\.(?:gstatic)\.com\/.*/i,new e.CacheFirst({cacheName:"google-fonts-webfonts",plugins:[new e.ExpirationPlugin({maxEntries:4,maxAgeSeconds:31536e3})]}),"GET"),e.registerRoute(/^https:\/\/fonts\.(?:googleapis)\.com\/.*/i,new e.StaleWhileRevalidate({cacheName:"google-fonts-stylesheets",plugins:[new e.ExpirationPlugin({maxEntries:4,maxAgeSeconds:604800})]}),"GET"),e.registerRoute(/\.(?:eot|otf|ttc|ttf|woff|woff2|font.css)$/i,new e.StaleWhileRevalidate({cacheName:"static-font-assets",plugins:[new e.ExpirationPlugin({maxEntries:4,maxAgeSeconds:604800})]}),"GET"),e.registerRoute(/\.(?:jpg|jpeg|gif|png|svg|ico|webp)$/i,new e.StaleWhileRevalidate({cacheName:"static-image-assets",plugins:[new e.ExpirationPlugin({maxEntries:64,maxAgeSeconds:2592e3})]}),"GET"),e.registerRoute(/\/_next\/static.+\.js$/i,new e.CacheFirst({cacheName:"next-static-js-assets",plugins:[new e.ExpirationPlugin({maxEntries:64,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\/_next\/image\?url=.+$/i,new e.StaleWhileRevalidate({cacheName:"next-image",plugins:[new e.ExpirationPlugin({maxEntries:64,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:mp3|wav|ogg)$/i,new e.CacheFirst({cacheName:"static-audio-assets",plugins:[new e.RangeRequestsPlugin,new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:mp4|webm)$/i,new e.CacheFirst({cacheName:"static-video-assets",plugins:[new e.RangeRequestsPlugin,new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:js)$/i,new e.StaleWhileRevalidate({cacheName:"static-js-assets",plugins:[new e.ExpirationPlugin({maxEntries:48,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:css|less)$/i,new e.StaleWhileRevalidate({cacheName:"static-style-assets",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\/_next\/data\/.+\/.+\.json$/i,new e.StaleWhileRevalidate({cacheName:"next-data",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:json|xml|csv)$/i,new e.NetworkFirst({cacheName:"static-data-assets",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute((function(e){var s=e.sameOrigin,i=e.url.pathname;return!(!s||i.startsWith("/api/auth/callback")||!i.startsWith("/api/"))}),new e.NetworkFirst({cacheName:"apis",networkTimeoutSeconds:10,plugins:[new e.ExpirationPlugin({maxEntries:16,maxAgeSeconds:86400})]}),"GET"),e.registerRoute((function(e){var s=e.request,i=e.url.pathname,a=e.sameOrigin;return"1"===s.headers.get("RSC")&&"1"===s.headers.get("Next-Router-Prefetch")&&a&&!i.startsWith("/api/")}),new e.NetworkFirst({cacheName:"pages-rsc-prefetch",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute((function(e){var s=e.request,i=e.url.pathname,a=e.sameOrigin;return"1"===s.headers.get("RSC")&&a&&!i.startsWith("/api/")}),new e.NetworkFirst({cacheName:"pages-rsc",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute((function(e){var s=e.url.pathname;return e.sameOrigin&&!s.startsWith("/api/")}),new e.NetworkFirst({cacheName:"pages",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute((function(e){return!e.sameOrigin}),new e.NetworkFirst({cacheName:"cross-origin",networkTimeoutSeconds:10,plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:3600})]}),"GET")})); +if(!self.define){let e,s={};const n=(n,a)=>(n=new URL(n+".js",a).href,s[n]||new Promise((s=>{if("document"in self){const e=document.createElement("script");e.src=n,e.onload=s,document.head.appendChild(e)}else e=n,importScripts(n),s()})).then((()=>{let e=s[n];if(!e)throw new Error(`Module ${n} didn’t register its module`);return e})));self.define=(a,c)=>{const i=e||("document"in self?document.currentScript.src:"")||location.href;if(s[i])return;let t={};const r=e=>n(e,i),o={module:{uri:i},exports:t,require:r};s[i]=Promise.all(a.map((e=>o[e]||r(e)))).then((e=>(c(...e),t)))}}define(["./workbox-f1770938"],(function(e){"use strict";importScripts(),self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"/_next/static/Gn2_GgwK_xCyR1KG1wC5R/_buildManifest.js",revision:"6d6885a0b4373a172e0bef8a6a02f9ee"},{url:"/_next/static/Gn2_GgwK_xCyR1KG1wC5R/_ssgManifest.js",revision:"b6652df95db52feb4daf4eca35380933"},{url:"/_next/static/chunks/104.aa1706bcc85c7fe3.js",revision:"aa1706bcc85c7fe3"},{url:"/_next/static/chunks/116-e21cd17c36e3f49f.js",revision:"Gn2_GgwK_xCyR1KG1wC5R"},{url:"/_next/static/chunks/279-267d0da9528ff717.js",revision:"Gn2_GgwK_xCyR1KG1wC5R"},{url:"/_next/static/chunks/320-211d725a18ce8a88.js",revision:"Gn2_GgwK_xCyR1KG1wC5R"},{url:"/_next/static/chunks/40-202476cc3ad72112.js",revision:"Gn2_GgwK_xCyR1KG1wC5R"},{url:"/_next/static/chunks/421-38591887f493feae.js",revision:"Gn2_GgwK_xCyR1KG1wC5R"},{url:"/_next/static/chunks/4bd1b696-c7389da1b006e729.js",revision:"Gn2_GgwK_xCyR1KG1wC5R"},{url:"/_next/static/chunks/506-19581e054077e252.js",revision:"Gn2_GgwK_xCyR1KG1wC5R"},{url:"/_next/static/chunks/55-0bcdf10b3bedcd88.js",revision:"Gn2_GgwK_xCyR1KG1wC5R"},{url:"/_next/static/chunks/558-cfd2b65145235095.js",revision:"Gn2_GgwK_xCyR1KG1wC5R"},{url:"/_next/static/chunks/690-98c1f6460a35828b.js",revision:"Gn2_GgwK_xCyR1KG1wC5R"},{url:"/_next/static/chunks/806-760c4e08c3c6254e.js",revision:"Gn2_GgwK_xCyR1KG1wC5R"},{url:"/_next/static/chunks/896-66cfbe71e83cc245.js",revision:"Gn2_GgwK_xCyR1KG1wC5R"},{url:"/_next/static/chunks/971.2c38701ff99dc4db.js",revision:"2c38701ff99dc4db"},{url:"/_next/static/chunks/app/%5Blocale%5D/dashboard/layout-48eb9276b4fb16bf.js",revision:"Gn2_GgwK_xCyR1KG1wC5R"},{url:"/_next/static/chunks/app/%5Blocale%5D/dashboard/my-prices/page-a9ec8fce0d014901.js",revision:"Gn2_GgwK_xCyR1KG1wC5R"},{url:"/_next/static/chunks/app/%5Blocale%5D/dashboard/page-77997a763b6a8452.js",revision:"Gn2_GgwK_xCyR1KG1wC5R"},{url:"/_next/static/chunks/app/%5Blocale%5D/layout-c2ce2d2fbf440842.js",revision:"Gn2_GgwK_xCyR1KG1wC5R"},{url:"/_next/static/chunks/app/%5Blocale%5D/page-a306f5b7c4b0f567.js",revision:"Gn2_GgwK_xCyR1KG1wC5R"},{url:"/_next/static/chunks/app/%5Blocale%5D/settings/page-1915dfa48019e533.js",revision:"Gn2_GgwK_xCyR1KG1wC5R"},{url:"/_next/static/chunks/app/_not-found/page-5c5fb3c483eeade9.js",revision:"Gn2_GgwK_xCyR1KG1wC5R"},{url:"/_next/static/chunks/app/api/auth/%5B...nextauth%5D/route-c71c05c0f24b917f.js",revision:"Gn2_GgwK_xCyR1KG1wC5R"},{url:"/_next/static/chunks/app/api/v1/prices/route-b59349778c1856a0.js",revision:"Gn2_GgwK_xCyR1KG1wC5R"},{url:"/_next/static/chunks/app/api/v1/prices/search/route-a9e1b554cbb822b3.js",revision:"Gn2_GgwK_xCyR1KG1wC5R"},{url:"/_next/static/chunks/app/api/v1/products/%5Bbarcode%5D/route-fc35bacf310120e4.js",revision:"Gn2_GgwK_xCyR1KG1wC5R"},{url:"/_next/static/chunks/app/api/v1/user/%5Bid%5D/account/route-b059e4273ce0f4be.js",revision:"Gn2_GgwK_xCyR1KG1wC5R"},{url:"/_next/static/chunks/app/api/v1/user/%5Bid%5D/prices/%5BpriceId%5D/route-754e02697f2b2f99.js",revision:"Gn2_GgwK_xCyR1KG1wC5R"},{url:"/_next/static/chunks/app/api/v1/user/%5Bid%5D/prices/route-4d7b1cad70acf695.js",revision:"Gn2_GgwK_xCyR1KG1wC5R"},{url:"/_next/static/chunks/app/api/v1/user/%5Bid%5D/profile/avatar/route-09c2f85c400801e3.js",revision:"Gn2_GgwK_xCyR1KG1wC5R"},{url:"/_next/static/chunks/app/api/v1/user/%5Bid%5D/profile/route-1ac1d4772ef41b0f.js",revision:"Gn2_GgwK_xCyR1KG1wC5R"},{url:"/_next/static/chunks/e37a0b60-b74be3d42787b18d.js",revision:"Gn2_GgwK_xCyR1KG1wC5R"},{url:"/_next/static/chunks/framework-f66176bb897dc684.js",revision:"Gn2_GgwK_xCyR1KG1wC5R"},{url:"/_next/static/chunks/main-app-499b908c1e14996d.js",revision:"Gn2_GgwK_xCyR1KG1wC5R"},{url:"/_next/static/chunks/main-b656d022b7799182.js",revision:"Gn2_GgwK_xCyR1KG1wC5R"},{url:"/_next/static/chunks/pages/_app-6a626577ffa902a4.js",revision:"Gn2_GgwK_xCyR1KG1wC5R"},{url:"/_next/static/chunks/pages/_error-1be831200e60c5c0.js",revision:"Gn2_GgwK_xCyR1KG1wC5R"},{url:"/_next/static/chunks/polyfills-42372ed130431b0a.js",revision:"846118c33b2c0e922d7b3a7676f81f6f"},{url:"/_next/static/chunks/webpack-0933a9779fa8d7e2.js",revision:"Gn2_GgwK_xCyR1KG1wC5R"},{url:"/_next/static/css/05cc92c67fe67fb5.css",revision:"05cc92c67fe67fb5"},{url:"/_next/static/css/84512d98ae0060e4.css",revision:"84512d98ae0060e4"},{url:"/_next/static/media/26a46d62cd723877-s.woff2",revision:"befd9c0fdfa3d8a645d5f95717ed6420"},{url:"/_next/static/media/55c55f0601d81cf3-s.woff2",revision:"43828e14271c77b87e3ed582dbff9f74"},{url:"/_next/static/media/581909926a08bbc8-s.woff2",revision:"f0b86e7c24f455280b8df606b89af891"},{url:"/_next/static/media/6d93bde91c0c2823-s.woff2",revision:"621a07228c8ccbfd647918f1021b4868"},{url:"/_next/static/media/97e0cb1ae144a2a9-s.woff2",revision:"e360c61c5bd8d90639fd4503c829c2dc"},{url:"/_next/static/media/a34f9d1faa5f3315-s.p.woff2",revision:"d4fe31e6a2aebc06b8d6e558c9141119"},{url:"/_next/static/media/df0a9ae256c0569c-s.woff2",revision:"d54db44de5ccb18886ece2fda72bdfe0"},{url:"/_next/static/media/logo.af74964e.png",revision:"47b84a04dca72c139e6f1c360998ae6e"},{url:"/manifest.json",revision:"180c42e2d45dc89fa94620a7942e4823"},{url:"/openapi.yaml",revision:"c34210dd6f89d2cf3bfd0b2f3485739e"},{url:"/service-worker.js",revision:"4f5b998def3df2d4a67f307e8fb251ad"},{url:"/static/algolia.png",revision:"d36577ab9bc617c8545cff97181861b7"},{url:"/static/images/templates/products/milk-template.webp",revision:"0bc05700930282f2b066755cf7bc6969"},{url:"/static/logo.png",revision:"47b84a04dca72c139e6f1c360998ae6e"}],{ignoreURLParametersMatching:[/^utm_/,/^fbclid$/]}),e.cleanupOutdatedCaches(),e.registerRoute("/",new e.NetworkFirst({cacheName:"start-url",plugins:[{cacheWillUpdate:function(e){return _ref.apply(this,arguments)}}]}),"GET"),e.registerRoute(/^https:\/\/fonts\.(?:gstatic)\.com\/.*/i,new e.CacheFirst({cacheName:"google-fonts-webfonts",plugins:[new e.ExpirationPlugin({maxEntries:4,maxAgeSeconds:31536e3})]}),"GET"),e.registerRoute(/^https:\/\/fonts\.(?:googleapis)\.com\/.*/i,new e.StaleWhileRevalidate({cacheName:"google-fonts-stylesheets",plugins:[new e.ExpirationPlugin({maxEntries:4,maxAgeSeconds:604800})]}),"GET"),e.registerRoute(/\.(?:eot|otf|ttc|ttf|woff|woff2|font.css)$/i,new e.StaleWhileRevalidate({cacheName:"static-font-assets",plugins:[new e.ExpirationPlugin({maxEntries:4,maxAgeSeconds:604800})]}),"GET"),e.registerRoute(/\.(?:jpg|jpeg|gif|png|svg|ico|webp)$/i,new e.StaleWhileRevalidate({cacheName:"static-image-assets",plugins:[new e.ExpirationPlugin({maxEntries:64,maxAgeSeconds:2592e3})]}),"GET"),e.registerRoute(/\/_next\/static.+\.js$/i,new e.CacheFirst({cacheName:"next-static-js-assets",plugins:[new e.ExpirationPlugin({maxEntries:64,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\/_next\/image\?url=.+$/i,new e.StaleWhileRevalidate({cacheName:"next-image",plugins:[new e.ExpirationPlugin({maxEntries:64,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:mp3|wav|ogg)$/i,new e.CacheFirst({cacheName:"static-audio-assets",plugins:[new e.RangeRequestsPlugin,new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:mp4|webm)$/i,new e.CacheFirst({cacheName:"static-video-assets",plugins:[new e.RangeRequestsPlugin,new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:js)$/i,new e.StaleWhileRevalidate({cacheName:"static-js-assets",plugins:[new e.ExpirationPlugin({maxEntries:48,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:css|less)$/i,new e.StaleWhileRevalidate({cacheName:"static-style-assets",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\/_next\/data\/.+\/.+\.json$/i,new e.StaleWhileRevalidate({cacheName:"next-data",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:json|xml|csv)$/i,new e.NetworkFirst({cacheName:"static-data-assets",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute((function(e){var s=e.sameOrigin,n=e.url.pathname;return!(!s||n.startsWith("/api/auth/callback")||!n.startsWith("/api/"))}),new e.NetworkFirst({cacheName:"apis",networkTimeoutSeconds:10,plugins:[new e.ExpirationPlugin({maxEntries:16,maxAgeSeconds:86400})]}),"GET"),e.registerRoute((function(e){var s=e.request,n=e.url.pathname,a=e.sameOrigin;return"1"===s.headers.get("RSC")&&"1"===s.headers.get("Next-Router-Prefetch")&&a&&!n.startsWith("/api/")}),new e.NetworkFirst({cacheName:"pages-rsc-prefetch",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute((function(e){var s=e.request,n=e.url.pathname,a=e.sameOrigin;return"1"===s.headers.get("RSC")&&a&&!n.startsWith("/api/")}),new e.NetworkFirst({cacheName:"pages-rsc",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute((function(e){var s=e.url.pathname;return e.sameOrigin&&!s.startsWith("/api/")}),new e.NetworkFirst({cacheName:"pages",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute((function(e){return!e.sameOrigin}),new e.NetworkFirst({cacheName:"cross-origin",networkTimeoutSeconds:10,plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:3600})]}),"GET")})); diff --git a/pcomparator/src/app/manifest.ts b/pcomparator/src/app/manifest.ts index 2b0739f..7f1a0d0 100644 --- a/pcomparator/src/app/manifest.ts +++ b/pcomparator/src/app/manifest.ts @@ -2,22 +2,25 @@ import type { MetadataRoute } from "next"; export default (): MetadataRoute.Manifest => { return { - name: "PComparator", - short_name: "PComparator", - description: "PComparator is the price comparator for foods, cosmetic and more", + name: "Daizl - Compare Prices Easily", + short_name: "Deazl", + description: + "Daizl is a web app that helps you compare prices for food, cosmetics, and more to find the best deals near you.", start_url: "/", display: "standalone", - background_color: "#000", - theme_color: "#000", + background_color: "#ffffff", + theme_color: "#ffffff", orientation: "portrait", dir: "ltr", lang: "en", + id: "/", screenshots: [ { src: "/static/logo.png", sizes: "512x512", type: "image/png" - } + }, + { form_factor: "wide", src: "/static/logo.png", sizes: "512x512", type: "image/png" } ], icons: [ { @@ -25,6 +28,13 @@ export default (): MetadataRoute.Manifest => { sizes: "512x512", type: "image/png" } - ] + ], + related_applications: [ + { + platform: "webapp", + url: "https://daizl.fr/manifest.webmanifest" + } + ], + prefer_related_applications: true }; }; diff --git a/pcomparator/src/app/robots.txt b/pcomparator/src/app/robots.txt index ed978d4..e8f1b3b 100644 --- a/pcomparator/src/app/robots.txt +++ b/pcomparator/src/app/robots.txt @@ -2,4 +2,4 @@ User-Agent: * Allow: / Disallow: /private/ -Sitemap: https://pcomparator.vercel.app/sitemap.xml \ No newline at end of file +Sitemap: https://deazl.fr/sitemap.xml \ No newline at end of file diff --git a/pcomparator/src/middleware.ts b/pcomparator/src/middleware.ts index bdbc6c4..28c1972 100644 --- a/pcomparator/src/middleware.ts +++ b/pcomparator/src/middleware.ts @@ -36,5 +36,5 @@ export default async (request: NextRequest) => { }; export const config = { - matcher: ["/((?!api|_next/static|_next/image|favicon.ico|manifest|static/*).*)"] + matcher: ["/((?!api|_next/static|_next/image|favicon.ico|manifest|static/*|robots|sw|workbox-*).*)"] };