File tree Expand file tree Collapse file tree 1 file changed +58
-0
lines changed
content/1.getting-started Expand file tree Collapse file tree 1 file changed +58
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ title : Nuxt & Nitro
3
+ description : Rendering emails in Nuxt and Nitro
4
+ ---
5
+
6
+
7
+ ## Quick Start
8
+
9
+ 1 . Add the ` @vitejs/plugin-vue ` dependency to your project, this will help to read the ` .vue ` files in the server.
10
+
11
+ :: code-group
12
+
13
+ ``` sh [pnpm]
14
+ pnpm add @vitejs/plugin-vue
15
+ ```
16
+
17
+ ``` bash [yarn]
18
+ yarn add @vitejs/plugin-vue
19
+ ```
20
+
21
+ ``` bash [npm]
22
+ npm install @vitejs/plugin-vue
23
+ ```
24
+
25
+ ::
26
+
27
+ ## Usage
28
+
29
+ You need to add it to the ` rollupConfig ` in either ` nuxt.config.ts ` or ` nuxt.config.js ` .
30
+
31
+ :: code-group
32
+
33
+ ``` ts [nuxt.config.ts]
34
+ import vue from ' @vitejs/plugin-vue'
35
+
36
+ export default defineNuxtConfig ({
37
+ nitro: {
38
+ rollupConfig: {
39
+ plugins: [vue ()]
40
+ },
41
+ },
42
+ })
43
+ ```
44
+
45
+ ``` ts [nitro.config.ts]
46
+ import vue from ' @vitejs/plugin-vue'
47
+
48
+ export default defineNitroConfig ({
49
+ rollupConfig: {
50
+ plugins: [
51
+ vue ()
52
+ ]
53
+ },
54
+ })
55
+ ```
56
+ ::
57
+
58
+ Next you just need to follow the [ Usage] ( /getting-started/usage ) guide. and you're good to go!
You can’t perform that action at this time.
0 commit comments