Skip to content

Commit 8a63e02

Browse files
committed
debug
1 parent ca14fb6 commit 8a63e02

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/app/api/[transport]/route.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,12 @@ const libsEntries = (Object.entries(libs) as Entries<typeof libs>).filter(
1313

1414
function toAbsoluteUrl(url: string) {
1515
// Use Vercel URL in production, fallback to NEXT_PUBLIC_URL otherwise
16+
console.log('VERCEL_URL:', process.env.VERCEL_URL)
17+
console.log('NEXT_PUBLIC_URL:', process.env.NEXT_PUBLIC_URL)
1618
const baseUrl = process.env.VERCEL_URL
1719
? `https://${process.env.VERCEL_URL}`
1820
: (process.env.NEXT_PUBLIC_URL ?? '')
21+
console.log('baseUrl:', baseUrl, 'url:', url)
1922
return `${baseUrl}${url}`
2023
}
2124

0 commit comments

Comments
 (0)