From f1e8506bfc4e256b3e047bfd6b6d9c3903a20f8a Mon Sep 17 00:00:00 2001 From: FabianLars Date: Mon, 4 Nov 2024 16:15:18 +0100 Subject: [PATCH 1/2] feat(migrate): Add note about `https` -> `http` scheme change on windows --- src/content/docs/start/migrate/from-tauri-1.mdx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/content/docs/start/migrate/from-tauri-1.mdx b/src/content/docs/start/migrate/from-tauri-1.mdx index 272a0b9908..07a75f67d5 100644 --- a/src/content/docs/start/migrate/from-tauri-1.mdx +++ b/src/content/docs/start/migrate/from-tauri-1.mdx @@ -63,8 +63,6 @@ The Tauri v2 CLI includes a `migrate` command that automates most of the process cargo tauri migrate' /> -{/* TODO: 2.0 */} - Learn more about the `migrate` command in the [Command Line Interface reference](/reference/cli/#migrate) ## Summary of Changes @@ -199,6 +197,10 @@ In order to support it, we renamed the Rust `Window` type to `WebviewWindow` and The `WebviewWindow` JS API type is now re-exported from `@tauri-apps/api/webviewWindow` instead of `@tauri-apps/api/window`. +### New origin URL on Windows + +On windows the frontend files in production apps will by default now be hosted on `http://tauri.localhost` instead of `https://tauri.localhost`. Because of this IndexedDB, LocalStorage and Cookies will be reset unless `dangerousUseHttpScheme` was used in v1. To prevent this you can set `app > windows > useHttpsScheme` to `true` or use `WebviewWindowBuilder::use_https_scheme` to keep using the `https` scheme. + ## Detailed Migration Steps Common scenarios you may encounter when migrating your Tauri 1.0 app to Tauri 2.0. From 96e718c434d44c85dd1e8a91c9961d513a19d0e1 Mon Sep 17 00:00:00 2001 From: FabianLars Date: Mon, 4 Nov 2024 16:17:22 +0100 Subject: [PATCH 2/2] reword --- src/content/docs/start/migrate/from-tauri-1.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/start/migrate/from-tauri-1.mdx b/src/content/docs/start/migrate/from-tauri-1.mdx index 07a75f67d5..fa76cd3572 100644 --- a/src/content/docs/start/migrate/from-tauri-1.mdx +++ b/src/content/docs/start/migrate/from-tauri-1.mdx @@ -199,7 +199,7 @@ The `WebviewWindow` JS API type is now re-exported from `@tauri-apps/api/webview ### New origin URL on Windows -On windows the frontend files in production apps will by default now be hosted on `http://tauri.localhost` instead of `https://tauri.localhost`. Because of this IndexedDB, LocalStorage and Cookies will be reset unless `dangerousUseHttpScheme` was used in v1. To prevent this you can set `app > windows > useHttpsScheme` to `true` or use `WebviewWindowBuilder::use_https_scheme` to keep using the `https` scheme. +On Windows the frontend files in production apps are now hosted on `http://tauri.localhost` instead of `https://tauri.localhost`. Because of this IndexedDB, LocalStorage and Cookies will be reset unless `dangerousUseHttpScheme` was used in v1. To prevent this you can set `app > windows > useHttpsScheme` to `true` or use `WebviewWindowBuilder::use_https_scheme` to keep using the `https` scheme. ## Detailed Migration Steps