Skip to content

Commit

Permalink
fix: judge devServer instead of writeToDisk
Browse files Browse the repository at this point in the history
  • Loading branch information
Jinbao1001 committed Nov 21, 2024
1 parent d9017fa commit 731652b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/mako/src/dev.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 731652b

Please sign in to comment.