You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You currently only appear to be able to export a promise, and not an async function — otherwise you receive an error stating that the async config exists.
Is there any context that might help us understand?
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
What is the improvement or update you wish to see?
The docs currently state:
"Since Next.js 12.1.0, you can use an async function:"
However:
Is there any context that might help us understand?
Tim Neutkens tweet stating that you can export a Promise: https://twitter.com/timneutkens/status/1486075973204422665
Pull request (merged) with the new async feature: #33662
On Next v12.0.10, when exporting an async function, I receive the following error:
Error: > Promise returned in next config. https://nextjs.org/docs/messages/promise-in-next-config
Doesn't work:
Does work:
Does the docs page already exist? Please link to it.
https://nextjs.org/docs/api-reference/next.config.js/introduction
The text was updated successfully, but these errors were encountered: