debug: add logs for info.astro
This commit is contained in:
parent
a31f702499
commit
fe386d2b02
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user