mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 07:05:11 +00:00
perf(nuxt): don't check isPrerendered
in dev for server page (#26061)
This commit is contained in:
parent
c4a7041d41
commit
23fbe8513b
@ -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', [
|
||||
|
Loading…
Reference in New Issue
Block a user