How to configure Tauri to load UI from an external static file server instead of bundling it? #13540
-
Hi team, Specifically, I want: Tauri to not embed or bundle any UI files at all. Questions:
Would really appreciate any guidance or examples. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
You can change
If you used frontendDist then no. Tauri should act more or less browser like. The only thing is if you don't configure Access-Control-Allow-Origin to iirc also allow
Acceptable in general? yes - In terms of best practices? ehh not really i guess 🤷 |
Beta Was this translation helpful? Give feedback.
-
I wanted to add for others reading that in order to make it work in dev mode you have to also change "devUrl" to your desired url. For example: "devURL": "http://example.com" |
Beta Was this translation helpful? Give feedback.
You can change
frontendDist
to point directly to an url, then it also won't bundle any files.If you used frontendDist then no. Tauri should act more or less browser like. The only thing is if you don't configure Access-Control-Allow-Origin to iirc also allow
tauri://ipc.localhost
andhttp://ipc.localhost
tauri will fallback to a slower IPC implementation.Acceptable in general? yes - In term…