using Next.js with Convex.dev
any good articles on how to use Next and Convex together
I am a bit new to both, I just finished doing the intro tutorial for next.js https://nextjs.org/learn/dashboard-app and can see good use cases for server side rendering.
However there are still tons of good use cases for using convex, not sure how to mix the two together
Learn Next.js | Next.js
Learn how to build a full-stack web application with the free, Next.js Foundations course.
3 Replies
Thanks for posting in <#1088161997662724167>.
Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets.
- Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.)
- Use search.convex.dev to search Docs, Stack, and Discord all at once.
- Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI.
- Avoid tagging staff unless specifically instructed.
Thank you!
Closest I found is a video: https://stack.convex.dev/wdc-using-convex-with-next-js-quickstart
I would also recommend checking the convex templates that use Next, here's a recent one with Next 15: https://github.com/get-convex/template-nextjs-shadcn/tree/main
Using Convex with Next.js Quickstart
A quick start guide for using Convex with Next.js
GitHub
GitHub - get-convex/template-nextjs-shadcn
Contribute to get-convex/template-nextjs-shadcn development by creating an account on GitHub.
In general, I'd recommend treating Convex as your backend for anything not client side, and only use Next server features we're they're specifically useful, like SSR. You can still use Convex as your backend with SSR.