Skip to content

Commit 6655edc

Browse files
pranaygpclaude
andcommitted
fix: use consistent DEBUG env var check in world-vercel
Change DEBUG=1 check to just DEBUG (truthy) to be consistent with the debug package pattern used throughout the codebase. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 4363f3d commit 6655edc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/world-vercel/src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ export async function makeRequest<T>({
294294
await parseResponseBody(response)
295295
.then((r) => r.data as { message?: string; code?: string })
296296
.catch(() => ({}));
297-
if (process.env.DEBUG === '1') {
297+
if (process.env.DEBUG) {
298298
const stringifiedHeaders = Array.from(headers.entries())
299299
.map(([key, value]: [string, string]) => `-H "${key}: ${value}"`)
300300
.join(' ');

0 commit comments

Comments
 (0)