From 731652baae37682ea18866ddb9edb6b71fa8d18d Mon Sep 17 00:00:00 2001 From: Jinbao1001 Date: Thu, 21 Nov 2024 18:33:33 +0800 Subject: [PATCH] fix: judge devServer instead of writeToDisk --- crates/mako/src/dev.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/mako/src/dev.rs b/crates/mako/src/dev.rs index 6d5346508..19b454ab1 100644 --- a/crates/mako/src/dev.rs +++ b/crates/mako/src/dev.rs @@ -173,7 +173,7 @@ impl DevServer { // staticfile has 302 problems when modify tooooo fast in 1 second // it will response 302 and we will get the old file // TODO: fix the 302 problem? - if !context.config.write_to_disk { + if context.config.dev_server.is_none() { if let Some(res) = context.get_static_content(path_without_slash_start) { debug!("serve with context.get_static_content: {}", path);