Skip to content

Commit 5c40945

Browse files
committed
chore: add NODE_ENV to environment when exec-ing SDK server
Signed-off-by: Donnie Adams <[email protected]>
1 parent 317e645 commit 5c40945

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/gptscript.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ export class GPTScript {
8585
if (GPTScript.instanceCount === 1 && process.env.GPTSCRIPT_DISABLE_SERVER !== "true") {
8686
let env = process.env
8787
if (this.opts.Env) {
88-
env = {}
88+
env = {
89+
"NODE_ENV": process.env.NODE_ENV
90+
}
8991
for (const v of this.opts.Env) {
9092
const equalIndex = v.indexOf("=")
9193
if (equalIndex === -1) {

0 commit comments

Comments
 (0)