Skip to content

Commit

Permalink
fix(web): not working again :(
Browse files Browse the repository at this point in the history
  • Loading branch information
tszhong0411 committed Apr 1, 2024
1 parent 96428c3 commit ce85ffe
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions apps/web/src/app/og/[id]/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ type OGRouteProps = {
}

export const GET = async (_: Request, props: OGRouteProps) => {
console.log(process.cwd())
console.log(fs.readdirSync(path.join(process.cwd(), 'public/images')))
console.log(fs.readdirSync(path.join(process.cwd(), 'public/fonts')))
console.log(
fs.existsSync(path.join(process.cwd(), 'public/images/og-background.png'))
)

try {
const {
params: { id }
Expand Down

0 comments on commit ce85ffe

Please sign in to comment.