vordgi / nimpl-router

Edge router for next.js apps. Allows you to configure rewrites, redirects, i18n and basePath at the middleware level instead of next.config.js.
https://nimpl.tech/router
MIT License
4 stars 0 forks source link

Next 15 incompatibility #9

Closed sannajammeh closed 3 days ago

sannajammeh commented 1 week ago

In route / a cookie property was accessed directly with cookies().get('NEXT_LOCALE'). cookies() should be awaited before using its value. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis

Next 15 will release with async api's for everything, meaning await has to be called when accessing cookies().

Happy to do a PR for this as well

vordgi commented 1 week ago

Hello!

Yes, that's an important change, thanks. It would be wonderful if you would create a PR for this.

If you will decide not to do it - please let me know and I'll add the functionality in the nearest free time

vordgi commented 3 days ago

Working on this

vordgi commented 3 days ago
vordgi commented 3 days ago

Released! v1.0.0 🎉