From fe386d2b02bf93c8537abbc39a2b96c5da7591d3 Mon Sep 17 00:00:00 2001 From: alikia2x Date: Tue, 29 Apr 2025 00:24:05 +0800 Subject: [PATCH] debug: add logs for info.astro --- packages/frontend/src/pages/song/[id]/info.astro | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/frontend/src/pages/song/[id]/info.astro b/packages/frontend/src/pages/song/[id]/info.astro index 7413a88..673b714 100644 --- a/packages/frontend/src/pages/song/[id]/info.astro +++ b/packages/frontend/src/pages/song/[id]/info.astro @@ -12,7 +12,6 @@ const databaseUser = import.meta.env.DB_USER const databasePassword = import.meta.env.DB_PASSWORD const databasePort = import.meta.env.DB_PORT - const postgresConfig = { hostname: databaseHost, port: parseInt(databasePort!), @@ -21,6 +20,8 @@ const postgresConfig = { password: databasePassword, }; +console.log(postgresConfig) + // 路由参数 const { id } = Astro.params; const { Client } = pg; @@ -95,6 +96,7 @@ if (!aidExists) { return new Response(null, { status: 404 }); } const videoInfo = await getVideoMetadata(aid); +console.log(videoInfo); const snapshots = await getVideoSnapshots(aid); client.end();