mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-11 04:22:13 +00:00
[now-node] Use project env vars in startDevServer() and respect NODEJS_HELPERS env var (#4211)
Depends on #4210.
This commit is contained in:
@@ -48,7 +48,9 @@ async function main() {
|
||||
const config = JSON.parse(process.env.NOW_DEV_CONFIG || '{}');
|
||||
delete process.env.NOW_DEV_CONFIG;
|
||||
|
||||
const shouldAddHelpers = config.helpers !== false;
|
||||
const shouldAddHelpers = !(
|
||||
config.helpers === false || process.env.NODEJS_HELPERS === '0'
|
||||
);
|
||||
|
||||
const entrypointPath = path.join(process.cwd(), entrypoint);
|
||||
const handler = await import(entrypointPath);
|
||||
|
||||
Reference in New Issue
Block a user