Next.js Discord

Discord Forum

Error placing opengraph-image.tsx inside catch all

Gouty oak gall posted this in #help-forum
Open in Discord
Gouty oak gallOP
I am using app directory.

I have a folder /app/recipe/[...ingredients]

In that folder I have page.tsx, when I add opengraph-image.tsx I get the following error:

unhandledRejection: Error: Catch-all must be the last part of the URL

But this seems to be how to handle different images for different slugs based on

2 Replies

there is an issue about this on github
Gouty oak gallOP
Ouch, this invalidates how I was planning on doing this.