Skip to content

Commit 10a92b9

Browse files
Added debug env api endpoint.
1 parent b846497 commit 10a92b9

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/app/api/debug-env/route.ts

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { NextResponse } from 'next/server'
2+
3+
export async function GET() {
4+
// Log environment variables to the server console
5+
console.log('DATABASE_URL:', process.env.DATABASE_URL)
6+
console.log('VAPID_PRIVATE_KEY:', process.env.VAPID_PRIVATE_KEY)
7+
8+
// Return environment variables in the response
9+
return NextResponse.json({
10+
DATABASE_URL: process.env.DATABASE_URL,
11+
VAPID_PRIVATE_KEY: process.env.VAPID_PRIVATE_KEY,
12+
// Add other environment variables you want to debug
13+
})
14+
}

0 commit comments

Comments
 (0)