mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +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 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 h('div', [
|
||||
|
Loading…
Reference in New Issue
Block a user