Skip to content

Commit

Permalink
fix: improve log
Browse files Browse the repository at this point in the history
  • Loading branch information
JimmyLv committed Mar 14, 2023
1 parent b90fe53 commit f94d029
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/fetchSubtitle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export async function fetchSubtitle(
descriptionText?: string;
}> {
const { service, videoId, pageNumber } = videoConfig;
console.log("========video========", videoConfig);
console.log("video: ", videoConfig);
if (service === VideoService.Youtube) {
return await fetchYoutubeSubtitle(videoId, shouldShowTimestamp);
}
Expand Down
4 changes: 2 additions & 2 deletions pages/api/b23tv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ export default async function handler(
req: NextApiRequest,
res: NextApiResponse<Data>
) {
console.log("========b23.tv URL========", req.query);
console.info("b23.tv: ", req.query);
// https://b23.tv/MP6B0qw
// @ts-ignore
let response = await fetch(req.query.url);
console.log("======response.url=======", response.url);
console.info("convert: ", response.url);
res.status(200).json({ url: response.url });
}

1 comment on commit f94d029

@vercel
Copy link

@vercel vercel bot commented on f94d029 Mar 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deployment failed with the following error:

Tried to attach Edge Config ecfg_bpimtz9yfzkggkhjr014d3grn9yj, but it does not exist. Remove or update the EDGE_CONFIG environment variable and try again.

Learn More: https://vercel.com/docs/errors#error-list/invalid-edge-config-connection-string

Please # to comment.