diff --git a/.changes/fix-proxy-url-totokens-impl.md b/.changes/fix-proxy-url-totokens-impl.md new file mode 100644 index 000000000..43a7c2dc5 --- /dev/null +++ b/.changes/fix-proxy-url-totokens-impl.md @@ -0,0 +1,5 @@ +--- +"tauri-utils": patch:bug +--- + +Fixes the ToTokens implementation of the window configuration `proxy_url` field. diff --git a/core/tauri-utils/src/config.rs b/core/tauri-utils/src/config.rs index 7d60cf0d8..73acca8fc 100644 --- a/core/tauri-utils/src/config.rs +++ b/core/tauri-utils/src/config.rs @@ -2243,7 +2243,7 @@ mod build { let minimizable = self.minimizable; let closable = self.closable; let title = str_lit(&self.title); - let proxy_url = opt_str_lit(self.proxy_url.as_ref()); + let proxy_url = opt_lit(self.proxy_url.as_ref().map(url_lit).as_ref()); let fullscreen = self.fullscreen; let focus = self.focus; let transparent = self.transparent;