Skip to content

Commit e95e6f2

Browse files
committed
fix: strip ~ from vercel o11y
1 parent ec97dc6 commit e95e6f2

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

nuxt.config.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ export default defineNuxtConfig({
77
nuxt.options.pwa.pwaAssets.disabled = true
88
}
99
},
10+
function (_, nuxt) {
11+
nuxt.hook('nitro:build:before', (nitro) => {
12+
nitro.options.ssrRoutes = nitro.options.ssrRoutes.map(r => r.replace('/~', '/'))
13+
})
14+
},
1015
'@unocss/nuxt',
1116
'@nuxt/eslint',
1217
'@nuxtjs/html-validator',
@@ -49,7 +54,6 @@ export default defineNuxtConfig({
4954
},
5055

5156
experimental: {
52-
payloadExtraction: true,
5357
viewTransition: true,
5458
typedPages: true,
5559
},

0 commit comments

Comments
 (0)