diff options
author | 2021-11-21 17:02:21 -0800 | |
---|---|---|
committer | 2021-11-21 17:02:21 -0800 | |
commit | cca8081f2e26c2562575c881660e36169134159f (patch) | |
tree | 3551ee150a125b1cb969ee263e7f645e52127927 | |
parent | 5c5b246cc332206290a3c6b2a4d6e619bcfd2350 (diff) | |
download | bun-cca8081f2e26c2562575c881660e36169134159f.tar.gz bun-cca8081f2e26c2562575c881660e36169134159f.tar.zst bun-cca8081f2e26c2562575c881660e36169134159f.zip |
add env var for disabling bun.js SSR
-rw-r--r-- | src/http.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http.zig b/src/http.zig index e6b4f3fef..ebdac49a5 100644 --- a/src/http.zig +++ b/src/http.zig @@ -2982,7 +2982,7 @@ pub const Server = struct { return; } - if (debug.fallback_only) { + if (debug.fallback_only or server.bundler.env.map.get("BUN_DISABLE_BUN_JS") != null) { RequestContext.fallback_only = true; RequestContext.JavaScriptHandler.javascript_disabled = true; } |