Next.js Discord

Discord Forum

Only using Edge runtime for a specific function

Unanswered
Bahama Swallow posted this in #help-forum
Open in Discord
Bahama SwallowOP
'Howdy! I'm creating an image server for Discord, and I need to generate Open Graph dynamically (with generateMetadata). I'd like to use the Edge in order to make the metadata load faster - however, my data fetching functions in the same route require use of the Node/serverless runtime.

Is it possible to only use Serverless for generateMetadata and keep my data fetchers using Serverless, or will I have to use a different solution (i.e. a second proxy that redirects to my page) in order to achieve this?

0 Replies