From 3a634c95a635de8ae664a5f2bed51b2f872acfb9 Mon Sep 17 00:00:00 2001 From: Marc-Stefan Cassola Date: Sun, 3 Mar 2024 16:33:16 +0000 Subject: [PATCH] changed LEPTOS_WATCH to true instead of ON (#262) --- src/compile/tests.rs | 6 +++--- src/config/project.rs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/compile/tests.rs b/src/compile/tests.rs index 3d7225dc..4efa12bc 100644 --- a/src/compile/tests.rs +++ b/src/compile/tests.rs @@ -56,7 +56,7 @@ fn test_project_dev() { LEPTOS_BIN_DIR=. \ LEPTOS_HASH_FILES=true \ LEPTOS_HASH_FILE_NAME=hash.txt \ - LEPTOS_WATCH=ON"; + LEPTOS_WATCH=true"; assert_eq!(ENV_REF, envs); assert_display_snapshot!(cargo, @"cargo build --package=example --bin=example --no-default-features --features=ssr"); @@ -103,7 +103,7 @@ fn test_workspace_project1() { LEPTOS_LIB_DIR=project1\\front \ LEPTOS_BIN_DIR=project1\\server \ LEPTOS_HASH_FILES=false \ - LEPTOS_WATCH=ON" + LEPTOS_WATCH=true" } else { "\ LEPTOS_OUTPUT_NAME=project1 \ @@ -114,7 +114,7 @@ fn test_workspace_project1() { LEPTOS_LIB_DIR=project1/front \ LEPTOS_BIN_DIR=project1/server \ LEPTOS_HASH_FILES=false \ - LEPTOS_WATCH=ON" + LEPTOS_WATCH=true" }; let cli = dev_opts(); diff --git a/src/config/project.rs b/src/config/project.rs index eb9bcdaf..37ce7e10 100644 --- a/src/config/project.rs +++ b/src/config/project.rs @@ -149,7 +149,7 @@ impl Project { vec.push(("LEPTOS_HASH_FILE_NAME", self.hash_file.rel.to_string())); } if self.watch { - vec.push(("LEPTOS_WATCH", "ON".to_string())) + vec.push(("LEPTOS_WATCH", "true".to_string())) } vec }