We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b846497 commit 10a92b9Copy full SHA for 10a92b9
src/app/api/debug-env/route.ts
@@ -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