@@ -8,14 +8,13 @@ tableOfContents:
88
99import { Tabs , TabItem , Steps } from ' @astrojs/starlight/components' ;
1010
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 .
1212
1313## Checklist
1414
1515- 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 ` .
1918- (Optional): Disable telemetry by setting ` telemetry: false ` in ` nuxt.config.ts ` .
2019
2120## Example Configuration
@@ -33,7 +32,7 @@ Nuxt is a meta framework for Vue. Learn more about Nuxt at https://nuxt.com. Thi
3332 {
3433 "build" : {
3534 "beforeDevCommand" : " npm run dev" ,
36- "beforeBuildCommand" : " npm run generate " ,
35+ "beforeBuildCommand" : " npm run build " ,
3736 "devUrl" : " http://localhost:3000" ,
3837 "frontendDist" : " ../dist"
3938 }
@@ -48,7 +47,7 @@ Nuxt is a meta framework for Vue. Learn more about Nuxt at https://nuxt.com. Thi
4847 {
4948 "build" : {
5049 "beforeDevCommand" : " yarn dev" ,
51- "beforeBuildCommand" : " yarn generate " ,
50+ "beforeBuildCommand" : " yarn build " ,
5251 "devUrl" : " http://localhost:3000" ,
5352 "frontendDist" : " ../dist"
5453 }
@@ -63,7 +62,7 @@ Nuxt is a meta framework for Vue. Learn more about Nuxt at https://nuxt.com. Thi
6362 {
6463 "build" : {
6564 "beforeDevCommand" : " pnpm dev" ,
66- "beforeBuildCommand" : " pnpm generate " ,
65+ "beforeBuildCommand" : " pnpm build " ,
6766 "devUrl" : " http://localhost:3000" ,
6867 "frontendDist" : " ../dist"
6968 }
@@ -93,12 +92,15 @@ Nuxt is a meta framework for Vue. Learn more about Nuxt at https://nuxt.com. Thi
9392
9493 ``` ts
9594 export default defineNuxtConfig ({
95+ compatibilityDate: ' 2025-05-15' ,
9696 // (optional) Enable the Nuxt devtools
9797 devtools: { enabled: true },
9898 // Enable SSG
9999 ssr: false ,
100100 // 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+ },
102104 vite: {
103105 // Better support for Tauri CLI output
104106 clearScreen: false ,
@@ -111,6 +113,8 @@ Nuxt is a meta framework for Vue. Learn more about Nuxt at https://nuxt.com. Thi
111113 strictPort: true ,
112114 },
113115 },
116+ // Avoids error [unhandledRejection] EMFILE: too many open files, watch
117+ ignore: [' **/src-tauri/**' ],
114118 });
115119 ```
116120
0 commit comments