Invalid Page / API Route Config
Why This Error Occurred
In one of your pages or API Routes, you used export const config
with an invalid value.
Possible Ways to Fix It
- The page's
config
must be an object initialized directly when being exported and not modified dynamically. - The
config
object must only contain static constant literals without expressions.
Not Allowed | Allowed |
---|---|
|
|
|
|
|
|
|
|
Useful Links
Was this helpful?