Nuxt/test/fixtures/basic/modules/runtime/page.vue
Daniel Roe c1ddb359e3
chore: update to use @nuxt/eslint-config (#24209)
Co-authored-by: Damian Głowala <damian.glowala.rebkow@gmail.com>
2023-11-09 18:01:13 +01:00

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>