You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Make Vite server timeout configurable (#4374)
* feat: Make Vite server timeout configurable
- Add ViteServerTimeout field to wails.json configuration (default: 10 seconds)
- Add --viteservertimeout CLI flag for dev command
- Update error message to be more descriptive about timeout duration
- Fix issue #4372 where slow Vite servers with SvelteKit/Tailwind exceeded 10s timeout
Users can now configure the timeout via:
1. wails.json: "viteServerTimeout": 30
2. CLI flag: wails dev --viteservertimeout 30
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
* docs: Add documentation for viteServerTimeout configuration
- Document viteServerTimeout field in wails.json project config
- Add --viteservertimeout CLI flag documentation
- Update save flag description to include new option
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
* Update changelog
---------
Co-authored-by: Claude <noreply@anthropic.com>
@@ -202,7 +203,7 @@ Your system is ready for Wails development!
202
203
| -race | Build with Go's race detector | false |
203
204
| -reloaddirs | Additional directories to trigger reloads (comma separated) | Value in `wails.json`|
204
205
| -s | Skip building the frontend | false |
205
-
| -save | Saves the given `assetdir`, `reloaddirs`, `wailsjsdir`, `debounce`, `devserver`and `frontenddevserverurl` flags in `wails.json` to become the defaults for subsequent invocations. ||
206
+
| -save | Saves the given `assetdir`, `reloaddirs`, `wailsjsdir`, `debounce`, `devserver`, `frontenddevserverurl`and `viteservertimeout` flags in `wails.json` to become the defaults for subsequent invocations. ||
206
207
| -skipbindings | Skip bindings generation ||
207
208
| -skipembedcreate | Skip automatic creation of non-existent embed directories and gitkeep files ||
208
209
| -tags "extra tags" | Build tags to pass to compiler (quoted and space separated) ||
Copy file name to clipboardExpand all lines: website/docs/reference/project-config.mdx
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,8 @@ The project config resides in the `wails.json` file in the project directory. Th
34
34
"frontend:dev:watcher":"",
35
35
// URL to a 3rd party dev server to be used to serve assets, EG Vite. \nIf this is set to 'auto' then the devServerUrl will be inferred from the Vite output
36
36
"frontend:dev:serverUrl":"",
37
+
// The timeout in seconds for Vite server detection when frontend:dev:serverUrl is set to 'auto'. Default: 10
38
+
"viteServerTimeout":10,
37
39
// Relative path to the directory that the auto-generated JS modules will be created
38
40
"wailsjsdir":"",
39
41
// The name of the binary
@@ -124,7 +126,7 @@ The project config resides in the `wails.json` file in the project directory. Th
124
126
125
127
This file is read by the Wails CLI when running `wails build` or `wails dev`.
126
128
127
-
The `assetdir`, `reloaddirs`, `wailsjsdir`, `debounceMS`, `devserver`and `frontenddevserverurl` flags in `wails build/dev` will update the project config
129
+
The `assetdir`, `reloaddirs`, `wailsjsdir`, `debounceMS`, `devserver`, `frontenddevserverurl`and `viteservertimeout` flags in `wails build/dev` will update the project config
128
130
and thus become defaults for subsequent runs.
129
131
130
132
The JSON Schema for this file is located [here](https://wails.io/schemas/config.v2.json).
0 commit comments