@@ -8,14 +8,13 @@ tableOfContents:
8
8
9
9
import { Tabs , TabItem , Steps } from ' @astrojs/starlight/components' ;
10
10
11
- Nuxt is a meta framework for Vue. Learn more about Nuxt at https://nuxt.com . This guide is accurate as of Nuxt 3.11 .
11
+ Nuxt is a meta framework for Vue. Learn more about Nuxt at https://nuxt.com . This guide is accurate as of Nuxt 3.17 .
12
12
13
13
## Checklist
14
14
15
15
- Use SSG by setting ` ssr: false ` . Tauri doesn't support server based solutions.
16
- - Use ` process.env.TAURI_DEV_HOST ` as the development server host IP when set to run on iOS physical devices.
17
- - Use ` dist/ ` as ` frontendDist ` in ` tauri.conf.json ` .
18
- - Compile using ` nuxi generate ` .
16
+ - Use default ` ../dist ` as ` frontendDist ` in ` tauri.conf.json ` .
17
+ - Compile using ` nuxi build ` .
19
18
- (Optional): Disable telemetry by setting ` telemetry: false ` in ` nuxt.config.ts ` .
20
19
21
20
## Example Configuration
@@ -33,7 +32,7 @@ Nuxt is a meta framework for Vue. Learn more about Nuxt at https://nuxt.com. Thi
33
32
{
34
33
"build" : {
35
34
"beforeDevCommand" : " npm run dev" ,
36
- "beforeBuildCommand" : " npm run generate " ,
35
+ "beforeBuildCommand" : " npm run build " ,
37
36
"devUrl" : " http://localhost:3000" ,
38
37
"frontendDist" : " ../dist"
39
38
}
@@ -48,7 +47,7 @@ Nuxt is a meta framework for Vue. Learn more about Nuxt at https://nuxt.com. Thi
48
47
{
49
48
"build" : {
50
49
"beforeDevCommand" : " yarn dev" ,
51
- "beforeBuildCommand" : " yarn generate " ,
50
+ "beforeBuildCommand" : " yarn build " ,
52
51
"devUrl" : " http://localhost:3000" ,
53
52
"frontendDist" : " ../dist"
54
53
}
@@ -63,7 +62,7 @@ Nuxt is a meta framework for Vue. Learn more about Nuxt at https://nuxt.com. Thi
63
62
{
64
63
"build" : {
65
64
"beforeDevCommand" : " pnpm dev" ,
66
- "beforeBuildCommand" : " pnpm generate " ,
65
+ "beforeBuildCommand" : " pnpm build " ,
67
66
"devUrl" : " http://localhost:3000" ,
68
67
"frontendDist" : " ../dist"
69
68
}
@@ -93,12 +92,15 @@ Nuxt is a meta framework for Vue. Learn more about Nuxt at https://nuxt.com. Thi
93
92
94
93
``` ts
95
94
export default defineNuxtConfig ({
95
+ compatibilityDate: ' 2025-05-15' ,
96
96
// (optional) Enable the Nuxt devtools
97
97
devtools: { enabled: true },
98
98
// Enable SSG
99
99
ssr: false ,
100
100
// Enables the development server to be discoverable by other devices when running on iOS physical devices
101
- devServer: { host: process .env .TAURI_DEV_HOST || ' localhost' },
101
+ devServer: {
102
+ host: ' 0'
103
+ },
102
104
vite: {
103
105
// Better support for Tauri CLI output
104
106
clearScreen: false ,
@@ -111,6 +113,10 @@ Nuxt is a meta framework for Vue. Learn more about Nuxt at https://nuxt.com. Thi
111
113
strictPort: true ,
112
114
},
113
115
},
116
+ // Avoids error [unhandledRejection] EMFILE: too many open files, watch
117
+ ignore: [
118
+ ' **/src-tauri/**'
119
+ ],
114
120
});
115
121
```
116
122
0 commit comments