mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-15 02:14:44 +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>
|