We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 317e645 commit 5c40945Copy full SHA for 5c40945
src/gptscript.ts
@@ -85,7 +85,9 @@ export class GPTScript {
85
if (GPTScript.instanceCount === 1 && process.env.GPTSCRIPT_DISABLE_SERVER !== "true") {
86
let env = process.env
87
if (this.opts.Env) {
88
- env = {}
+ env = {
89
+ "NODE_ENV": process.env.NODE_ENV
90
+ }
91
for (const v of this.opts.Env) {
92
const equalIndex = v.indexOf("=")
93
if (equalIndex === -1) {
0 commit comments