mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-24 22:55:13 +00:00
21 lines
461 B
Vue
21 lines
461 B
Vue
<script setup lang="ts">
|
|
const renderedOnServer = useState(() => import.meta.server)
|
|
definePageMeta({
|
|
// Disable page transition for this page to avoid having multiple time the same page during transition
|
|
pageTransition: false,
|
|
layoutTransition: false,
|
|
})
|
|
</script>
|
|
|
|
<template>
|
|
<div>
|
|
<NuxtLink to="/client-only-page">
|
|
to client only page
|
|
</NuxtLink>
|
|
|
|
<p id="server-rendered">
|
|
{{ renderedOnServer }}
|
|
</p>
|
|
</div>
|
|
</template>
|