Getting Started
Nuxt & Nitro
Rendering emails in Nuxt and Nitro
Quick Start
- Add the
@vitejs/plugin-vue
dependency to your project, this will help to read the.vue
files in the server.
pnpm add @vitejs/plugin-vue
Usage
You need to add it to the rollupConfig
in either nuxt.config.ts
or nuxt.config.js
.
import vue from '@vitejs/plugin-vue'
export default defineNuxtConfig({
nitro: {
rollupConfig: {
plugins: [vue()]
},
},
})
Next you just need to follow the Usage guide. and you're good to go!