Add SSR bundle minify config

This commit is contained in:
2026-10-17 15:03:30 +01:00
parent 8a981c854a
commit ed788dff97
10 changed files with 108 additions and 8 deletions
+7
View File
@@ -114,6 +114,13 @@ export type BunextConfig = {
* aborted and answered with a 500. Defaults to 30000.
*/
ssr_render_timeout_ms?: number;
/**
* Minify the SSR bundle. The SSR output is read off local disk by the
* server and is never downloaded by a browser, so minifying it only costs
* build memory. Set to `false` on memory-constrained hosts. Never minified
* in dev; defaults to `true` in production.
*/
minify_ssr_bundle?: boolean;
};
export type BunextConfigMiddlewareParams = {
req: Request;