-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Invalid config. Please export the config as the variable const
#4
Comments
Hey, can you please show me the code of the api route or a code example |
I got a similar warning,
I believe it is because dynamic evaluations are not allowed? (https://nextjs.org/docs/messages/invalid-page-config) Since I know I'm using it in an api route, I just made it static, like:
|
I wrapped API handler as in example with exporting const , but facing following issue:
The text was updated successfully, but these errors were encountered: