mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 16:43:55 +00:00
c1ddb359e3
Co-authored-by: Damian Głowala <damian.glowala.rebkow@gmail.com>
20 lines
364 B
Vue
20 lines
364 B
Vue
<!-- eslint-disable vue/multi-word-component-names -->
|
|
|
|
<script setup lang="ts">
|
|
import { setResponseHeader } from 'h3'
|
|
|
|
definePageMeta({
|
|
value: 'added in pages:extend'
|
|
})
|
|
|
|
if (import.meta.server) {
|
|
setResponseHeader(useRequestEvent(), 'x-extend', useRoute().meta.value as string)
|
|
}
|
|
</script>
|
|
|
|
<template>
|
|
<div>
|
|
added in pages:extend
|
|
</div>
|
|
</template>
|