Skip to content

Commit 3888a7b

Browse files
committed
💫 added environment overrides from context #1
1 parent 64492f2 commit 3888a7b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

‎src/ts/cli.ts

+6
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ program
4646
}
4747
}
4848

49+
if(netlifyConfig.build.environment) {
50+
for(const variable in netlifyConfig.build.environment) {
51+
process.env[variable] = netlifyConfig.build.environment[variable];
52+
}
53+
}
54+
4955
const server = new Server(netlifyConfig, program.port || 9000);
5056
await server.listen();
5157

0 commit comments

Comments
 (0)