Skip to content
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

Backend: Move from Pages API Routes to App Router Handlers (or Server Actions) #98

Open
akrolsmir opened this issue Mar 7, 2024 · 0 comments
Assignees

Comments

@akrolsmir
Copy link
Member

We did a lot of our server-side code using Pages API Routes (https://nextjs.org/docs/pages/building-your-application/routing/api-routes). A year later, NextJS has rolled out 2 different ways of doing this for App Router:

It might be worth migrating these over? The old way is vaguely less elegant/supported, plus it seems to have caused an issue where the admin client was required in one place, instead of the server client: b7e7fe6

@akrolsmir akrolsmir self-assigned this Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant