File tree Expand file tree Collapse file tree
rivetkit-typescript/packages/rivetkit/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -372,13 +372,10 @@ export function getRequestEncoding(req: HonoRequest): Encoding {
372372
373373/**
374374 * Determines whether internal errors should be exposed to the client.
375- * Returns true if RIVET_EXPOSE_ERRORS=1 or NODE_ENV=development .
375+ * Returns true if RIVET_EXPOSE_ERRORS=1.
376376 */
377377export function getRequestExposeInternalError ( _req : Request ) : boolean {
378- return (
379- getEnvUniversal ( "RIVET_EXPOSE_ERRORS" ) === "1" ||
380- getEnvUniversal ( "NODE_ENV" ) === "development"
381- ) ;
378+ return getEnvUniversal ( "RIVET_EXPOSE_ERRORS" ) === "1" ;
382379}
383380
384381export function getRequestQuery ( c : HonoContext ) : unknown {
Original file line number Diff line number Diff line change @@ -102,10 +102,7 @@ function getRequestConnParams(request: Request): unknown {
102102}
103103
104104function getRequestExposeInternalError ( ) : boolean {
105- return (
106- getEnvUniversal ( "RIVET_EXPOSE_ERRORS" ) === "1" ||
107- getEnvUniversal ( "NODE_ENV" ) === "development"
108- ) ;
105+ return getEnvUniversal ( "RIVET_EXPOSE_ERRORS" ) === "1" ;
109106}
110107
111108function buildErrorResponse ( request : Request , error : unknown ) : Response {
@@ -476,7 +473,11 @@ export class DynamicActorIsolateRuntime {
476473 XDG_DATA_HOME : `${ DYNAMIC_SANDBOX_APP_ROOT } /.local/share` ,
477474 XDG_CACHE_HOME : `${ DYNAMIC_SANDBOX_APP_ROOT } /.cache` ,
478475 TMPDIR : DYNAMIC_SANDBOX_TMP_ROOT ,
479- RIVET_EXPOSE_ERRORS : "1" ,
476+ ...( process . env . RIVET_EXPOSE_ERRORS
477+ ? {
478+ RIVET_EXPOSE_ERRORS : process . env . RIVET_EXPOSE_ERRORS ,
479+ }
480+ : { } ) ,
480481 ...( process . env . RIVETKIT_TEST_DOCKER_HELPER_URL
481482 ? {
482483 RIVETKIT_TEST_DOCKER_HELPER_URL :
You can’t perform that action at this time.
0 commit comments