mirror of
https://github.com/nuxt/nuxt.git
synced 2024-12-04 19:37:18 +00:00
18 lines
296 B
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>
|