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

Function createConstants

packages/cli/scripts/build.mjs:27–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25const PRIORITY_COMMANDS = ['deploy', 'env', 'list', 'link', 'build', 'dev'];
26
27function createConstants() {
28 const filename = new URL('src/util/constants.ts', repoRoot);
29 const contents = `// This file is auto-generated
30export const SENTRY_DSN: string | undefined = ${envToString('SENTRY_DSN')};
31`;
32 writeFileSync(filename, contents, 'utf8');
33}
34
35function envToString(key) {
36 const value = process.env[key];

Callers 1

build.mjsFile · 0.85

Calls 1

envToStringFunction · 0.85

Tested by

no test coverage detected