MCPcopy Create free account
hub / github.com/vercel/vercel / injectSystemValuesInDotenv

Method injectSystemValuesInDotenv

packages/cli/src/util/dev/server.ts:970–980  ·  view source on GitHub ↗
(env: Env)

Source from the content-addressed store, hash-verified

968 }
969
970 injectSystemValuesInDotenv(env: Env): Env {
971 for (const name of Object.keys(env)) {
972 if (name === 'VERCEL_URL') {
973 env['VERCEL_URL'] = this.address.host;
974 } else if (name === 'VERCEL_REGION') {
975 env['VERCEL_REGION'] = 'dev1';
976 }
977 }
978
979 return env;
980 }
981
982 /**
983 * Create an array of from builder inputs

Callers 1

getLocalEnvMethod · 0.95

Calls 1

keysMethod · 0.45

Tested by

no test coverage detected