From ee659decb241a25251d3388cabaa366d78276460 Mon Sep 17 00:00:00 2001 From: lovkyndig <125480548+lovkyndig@users.noreply.github.com> Date: Fri, 14 Apr 2023 13:03:52 +0200 Subject: [PATCH] 0.3.6 1. workbox-precache ok, but the md-files have to be copied manually to the public-folder. 2. runtimeCaching ok, but not in use. --- nuxt.config.ts | 15 ++------------- package.json | 2 +- 2 files changed, 3 insertions(+), 14 deletions(-) diff --git a/nuxt.config.ts b/nuxt.config.ts index 0233a59a..59264bf9 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -115,9 +115,8 @@ export default defineNuxtConfig({ globIgnores: ['google*.html'], cleanupOutdatedCaches: true, runtimeCaching: [{ - urlPattern: ({ url }) => { - return url.pathname.startsWith('/api') - }, + // urlPattern: /^https:\/\/kirkepostille.vercel\.app\/.*/i, // not working + urlPattern: ({ url }) => { return url.pathname.startsWith('/api') }, handler: 'CacheFirst' as const, options: { cacheName: 'api-cache', @@ -125,16 +124,6 @@ export default defineNuxtConfig({ statuses: [0, 200] } } - // urlPattern: /^https:\/\/kirkepostille.vercel\.app\/.*/i, - /* - handler: 'CacheFirst', - options: { - cacheName: 'api-cache', - cacheableResponse: { - statuses: [0, 200] - } - } - */ }] }, manifest: false, diff --git a/package.json b/package.json index 6f1e79a0..cccecf1a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "kirkepostil", - "version": "0.3.6-rc.11", + "version": "0.3.6", "description": "⚡A book from 1888 with 1743 pages, converted to Nuxt content, implemented with pagefind.", "homepage": "https://kirkepostille.vercel.app", "author": "lovkyndig",