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

Function debug

packages/build-utils/src/debug.ts:3–9  ·  view source on GitHub ↗
(message: string, ...additional: any[])

Source from the content-addressed store, hash-verified

1import { getPlatformEnv } from './get-platform-env';
2
3export default function debug(message: string, ...additional: any[]) {
4 if (getPlatformEnv('BUILDER_DEBUG')) {
5 console.log(message, ...additional);
6 } else if (process.env.VERCEL_DEBUG_PREFIX) {
7 console.log(`${process.env.VERCEL_DEBUG_PREFIX}${message}`, ...additional);
8 }
9}

Callers 15

ensureResolvableFunction · 0.90
ensureSymlinkFunction · 0.90
logNftWarningsFunction · 0.90
buildFunction · 0.90
createRenderNodeFunctionFunction · 0.90
createRenderEdgeFunctionFunction · 0.90
buildFunction · 0.90
buildFunction · 0.90
index.tsFile · 0.90
downloadFilesInWorkPathFunction · 0.90
installInjectedPackageFunction · 0.90
buildFunction · 0.90

Calls 2

getPlatformEnvFunction · 0.90
logMethod · 0.45

Tested by

no test coverage detected