Skip to content

Commit 715065d

Browse files
committed
fix: do not use route rule beginning /~
1 parent 4979071 commit 715065d

1 file changed

Lines changed: 2 additions & 10 deletions

File tree

nuxt.config.ts

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,6 @@ export default defineNuxtConfig({
77
nuxt.options.pwa.pwaAssets.disabled = true
88
}
99
},
10-
function (_, nuxt) {
11-
nuxt.hook('modules:done', () => {
12-
nuxt.hook('nitro:build:before', (nitro) => {
13-
nitro.options.ssrRoutes = []
14-
})
15-
})
16-
},
1710
'@unocss/nuxt',
1811
'@nuxt/eslint',
1912
'@nuxtjs/html-validator',
@@ -46,9 +39,8 @@ export default defineNuxtConfig({
4639

4740
routeRules: {
4841
'/': { prerender: true },
49-
'/package/**': { isr: 60 },
50-
'/~**': { isr: 60 },
51-
'/api/**': { isr: 60 },
42+
'/**': { isr: 60 },
43+
'/search': { isr: false, cache: false },
5244
'/_v/script.js': { proxy: 'https://npmx.dev/_vercel/insights/script.js' },
5345
'/_v/view': { proxy: 'https://npmx.dev/_vercel/insights/view' },
5446
'/_v/event': { proxy: 'https://npmx.dev/_vercel/insights/event' },

0 commit comments

Comments
 (0)