Skip to content

Commit

Permalink
0.3.6
Browse files Browse the repository at this point in the history
1. workbox-precache ok, but the md-files have to be copied manually to the public-folder.
2. runtimeCaching ok, but not in use.
  • Loading branch information
lovkyndig committed Apr 14, 2023
1 parent a2bba3a commit ee659de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
15 changes: 2 additions & 13 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,26 +115,15 @@ 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',
cacheableResponse: {
statuses: [0, 200]
}
}
// urlPattern: /^https:\/\/kirkepostille.vercel\.app\/.*/i,
/*
handler: 'CacheFirst',
options: {
cacheName: 'api-cache',
cacheableResponse: {
statuses: [0, 200]
}
}
*/
}]
},
manifest: false,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

1 comment on commit ee659de

@vercel
Copy link

@vercel vercel bot commented on ee659de Apr 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

kirkepostille – ./

kirkepostille-git-main-lovkyndig.vercel.app
kirkepostille.vercel.app
kirkepostille-lovkyndig.vercel.app

Please sign in to comment.