Clerk middleware breaks Discord URL preview (embed)

Anyone know how to fix this ...?
5 Replies
NekoChan
NekoChan2y ago
NekoChan - Full-Stack Web Developer
Hello World 你好 世界
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
NekoChan
NekoChan2y ago
the og image api preview also not working ( with Clerk middleware ) https://blog.nekochantw.xyz/api/og
NekoChan
NekoChan2y ago
my middleware.ts looks like this
import { authMiddleware } from '@clerk/nextjs/server'

export default authMiddleware({
publicRoutes: ['/:path*'],
})

export const config = {
matcher: ['/((?!.*\\..*|_next).*)', '/', '/(api|trpc)(.*)'],
}
import { authMiddleware } from '@clerk/nextjs/server'

export default authMiddleware({
publicRoutes: ['/:path*'],
})

export const config = {
matcher: ['/((?!.*\\..*|_next).*)', '/', '/(api|trpc)(.*)'],
}
it's only happen in Discord, Telegram and Twitter are fine.
Want results from more Discord servers?
Add your server