mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-07 17:32:31 +00:00
fix(nuxt): only check if server page is prerendered on client (#26081)
This commit is contained in:
parent
8398bcb611
commit
2e8c598e4d
@ -42,7 +42,7 @@ export const createIslandPage = (name: string) => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
const path = !import.meta.dev && await isPrerendered(route.path) ? route.path : route.fullPath.replace(/#.*$/, '')
|
const path = import.meta.client && await isPrerendered(route.path) ? route.path : route.fullPath.replace(/#.*$/, '')
|
||||||
|
|
||||||
return () => {
|
return () => {
|
||||||
return h('div', [
|
return h('div', [
|
||||||
|
Loading…
Reference in New Issue
Block a user