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

18 lines
296 B
Vue

<script setup>
import { appendResponseHeader } from 'h3'
appendResponseHeader(useRequestEvent(), 'x-nitro-prerender', '/some/url/from/server-only/component')
</script>
<template>
<div>
server-only component
</div>
</template>
<style>
:root {
--server-only: 'server-only';
}
</style>