File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -120,8 +120,10 @@ def base_url(self) -> str | None:
120120
121121 def _build_process_env (self , * , port : int ) -> dict [str , str ]:
122122 proc_env = dict (os .environ )
123- # Defaults that make the server boot under SEA (avoid pino-pretty transport)
124- proc_env .setdefault ("NODE_ENV" , "production" )
123+ # Force production mode so inherited NODE_ENV=development never reaches the
124+ # SEA child process. Development mode breaks under SEA because pino-pretty
125+ # is an optional dependency that is not present in the packaged binary.
126+ proc_env ["NODE_ENV" ] = "production"
125127 # Server package expects BB_ENV to be set (see packages/server/src/lib/env.ts)
126128 proc_env .setdefault ("BB_ENV" , "local" )
127129 proc_env ["HOST" ] = self ._config .host
You can’t perform that action at this time.
0 commit comments