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 databasePassword = import.meta.env.DB_PASSWORD
|
||||||
const databasePort = import.meta.env.DB_PORT
|
const databasePort = import.meta.env.DB_PORT
|
||||||
|
|
||||||
|
|
||||||
const postgresConfig = {
|
const postgresConfig = {
|
||||||
hostname: databaseHost,
|
hostname: databaseHost,
|
||||||
port: parseInt(databasePort!),
|
port: parseInt(databasePort!),
|
||||||
@ -21,6 +20,8 @@ const postgresConfig = {
|
|||||||
password: databasePassword,
|
password: databasePassword,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
console.log(postgresConfig)
|
||||||
|
|
||||||
// 路由参数
|
// 路由参数
|
||||||
const { id } = Astro.params;
|
const { id } = Astro.params;
|
||||||
const { Client } = pg;
|
const { Client } = pg;
|
||||||
@ -95,6 +96,7 @@ if (!aidExists) {
|
|||||||
return new Response(null, { status: 404 });
|
return new Response(null, { status: 404 });
|
||||||
}
|
}
|
||||||
const videoInfo = await getVideoMetadata(aid);
|
const videoInfo = await getVideoMetadata(aid);
|
||||||
|
console.log(videoInfo);
|
||||||
const snapshots = await getVideoSnapshots(aid);
|
const snapshots = await getVideoSnapshots(aid);
|
||||||
client.end();
|
client.end();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user