perf(nuxt): don't check isPrerendered in dev for server page (#26061)

This commit is contained in:
Julien Huang 2024-03-04 11:32:34 +01:00 committed by GitHub
parent c4a7041d41
commit 23fbe8513b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -42,7 +42,7 @@ export const createIslandPage = (name: string) => {
})
const route = useRoute()
const path = await isPrerendered(route.path) ? route.path : route.fullPath.replace(/#.*$/, '')
const path = !import.meta.dev && await isPrerendered(route.path) ? route.path : route.fullPath.replace(/#.*$/, '')
return () => {
return h('div', [