debug: add logs for info.astro

This commit is contained in:
alikia2x (寒寒) 2025-04-29 00:24:05 +08:00
parent a31f702499
commit fe386d2b02
Signed by: alikia2x
GPG Key ID: 56209E0CCD8420C6

View File

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