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();