Enable codeGeneration on vercel? #459
-
Hey, I've been trying for a few hours to generate MDX files on edge through a nextjs app on Vercel. I went down quite the rabbit hole to find out why this didn't work as the errors on happened in production and weren't helpful. I ended up in Next.js doc telling me that Packages such as @mdx-js/mdx and hashicorp/next-mdx-remote rely on evaluation of JavaScript. Is there no way to get this working somehow? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hello, The code generation parameter you're referenced is just for emulation and local development. The dynamic code execution limits are defined here It isn't possible to bypass that limits |
Beta Was this translation helpful? Give feedback.
Hello,
The code generation parameter you're referenced is just for emulation and local development.
The dynamic code execution limits are defined here
https://vercel.com/docs/concepts/functions/edge-functions/limitations#dynamic-code-execution-leads-to-a-runtime-error
It isn't possible to bypass that limits