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

POST to a route #372

Closed
jesselee34 opened this issue Dec 9, 2016 · 3 comments
Closed

POST to a route #372

jesselee34 opened this issue Dec 9, 2016 · 3 comments

Comments

@jesselee34
Copy link

Looking through the documentation, I don't see a way to POST to a route. Is this possible?

@jonaswindey
Copy link
Contributor

What are you trying to achieve? Next is a client-side framework that renders html (with server-side html rendering). For any API calls (GET/POST) you will need a server environment that handles this.

Unless you configure custom routes, which is under development (#291) I would still advise a separate Node server for your backend (in Express or Hapi)

@krstffr
Copy link

krstffr commented Dec 11, 2016

This would be great to clarify in the readme as I spent a little too much time thinking of the best way to solve this using only next.js before realizing that an external API app makes so much more sense :)

@rauchg
Copy link
Member

rauchg commented Dec 24, 2016

I think a great place to put this is the FAQ!

@rauchg rauchg closed this as completed Dec 24, 2016
@lock lock bot locked as resolved and limited conversation to collaborators May 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants