In nuxt.config.js , specify the directory where you want to organize sources in srcDir.nuxt.config.js
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
srcDir: "src/"
})
src/app.vue
<template>
<NuxtPage />
</template>
src/pages/index.vue
<template>
<div>
Hello
</div>
</template>
Then, npm run dev