Nuxt/test/fixtures/basic/components/ServerOnlyComponent.server.vue

18 lines
289 B
Vue
Raw Normal View History

<script setup>
prerenderRoutes(['/some/url/from/server-only/component'])
2024-06-10 21:05:29 +00:00
console.log('should not be in client bundle')
</script>
<template>
<div>
server-only component
<ServerOnlyComponentChild />
</div>
</template>
<style>
:root {
--server-only: 'server-only';
}
</style>