From c147b35e002958470a97687e0b52dc0790a8c237 Mon Sep 17 00:00:00 2001 From: Aman Varshney Date: Mon, 12 May 2025 03:29:42 +0530 Subject: [PATCH] fix frontend dist location for react router --- .changeset/blue-knives-hug.md | 5 +++++ apps/cli/src/helpers/tauri-setup.ts | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 .changeset/blue-knives-hug.md diff --git a/.changeset/blue-knives-hug.md b/.changeset/blue-knives-hug.md new file mode 100644 index 0000000..762266b --- /dev/null +++ b/.changeset/blue-knives-hug.md @@ -0,0 +1,5 @@ +--- +"create-better-t-stack": patch +--- + +fix tauri frontend dist locationd for react router diff --git a/apps/cli/src/helpers/tauri-setup.ts b/apps/cli/src/helpers/tauri-setup.ts index 2a291cb..ad583ec 100644 --- a/apps/cli/src/helpers/tauri-setup.ts +++ b/apps/cli/src/helpers/tauri-setup.ts @@ -60,7 +60,9 @@ export async function setupTauri(config: ProjectConfig): Promise { ? "../build" : hasNext ? "../.next" - : "../dist"; + : hasReactRouter + ? "../build/client" + : "../dist"; const tauriArgs = [ "init",