Skip to content

Commit

Permalink
changed LEPTOS_WATCH to true instead of ON (#262)
Browse files Browse the repository at this point in the history
  • Loading branch information
maccesch authored Mar 3, 2024
1 parent 47b20df commit 3a634c9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/compile/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -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 \
Expand All @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion src/config/project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 3a634c9

Please sign in to comment.