// pages/index.vue
<script setup lang="ts">
const route = useRoute()
import { writer } from '~/utils/logger'
async function testWrite() {
await writer.write("We are at the index app");
await writer.end(); // Don't forget to close the writer when done
}
testWrite();
</script>
<template>
<div>
<h1>Nuxt Routing set up successfully!</h1>
<p>Current route: {{ route.path }}</p>
<a href="https://nuxt.com/docs/getting-started/routing" target="_blank">Learn more about Nuxt Routing</a>
</div>
</template>
// pages/index.vue
<script setup lang="ts">
const route = useRoute()
import { writer } from '~/utils/logger'
async function testWrite() {
await writer.write("We are at the index app");
await writer.end(); // Don't forget to close the writer when done
}
testWrite();
</script>
<template>
<div>
<h1>Nuxt Routing set up successfully!</h1>
<p>Current route: {{ route.path }}</p>
<a href="https://nuxt.com/docs/getting-started/routing" target="_blank">Learn more about Nuxt Routing</a>
</div>
</template>