-
Notifications
You must be signed in to change notification settings - Fork 44
feat(next-js): add support for next.js #1152
Conversation
|
Claude encountered an error —— View job I'll analyze this and get back to you. |
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
941ce99 to
1e5b6d5
Compare
|
Claude encountered an error —— View job I'll analyze this and get back to you. |
1e5b6d5 to
69ab8ec
Compare
|
Claude encountered an error —— View job I'll analyze this and get back to you. |
More templates
@rivetkit/actor
@rivetkit/core
@rivetkit/db
rivetkit
@rivetkit/cloudflare-workers
@rivetkit/redis
@rivetkit/framework-base
@rivetkit/next-js
@rivetkit/react
commit: |
|
Claude encountered an error —— View job I'll analyze this and get back to you. |
1eb2b3e to
0f1201a
Compare
|
Claude finished @jog1t's task —— View job PR Review: Next.js IntegrationComprehensive review of the Next.js integration PR for code quality, best practices, and potential issues. Todo List:
✅ Overall AssessmentThis is a solid implementation that follows most project conventions and provides a clean Next.js integration. The architecture is sound and the implementation is minimal yet functional. 🎯 Code Quality & Best PracticesStrengths:
🏗️ Architecture & DesignPackage Structure:
Integration Approach:
|
Merge activity
|
Closes KIT-178, KIT-115 ### TL;DR Add Next.js framework support with a working example and update documentation links. ### What changed? - Added a new `@rivetkit/next-js` package with Next.js integration - Created a complete Next.js example application in `examples/next-js` - Updated the GitHub workflow to include templates from examples directory - Fixed the basePath handling in the core router to support custom API paths - Updated documentation links throughout the README to point to rivet.gg domain - Added a pkg.pr.new badge to the README for easy testing ### How to test? 1. Run the Next.js example: ```bash cd examples/next-js pnpm install pnpm dev ``` 2. Open http://localhost:3000 to see the counter example 3. Try incrementing the counter and changing the counter name 4. Verify the API routes work correctly at `/api/registry` ### Why make this change? Next.js is one of the most popular React frameworks, and this integration allows RivetKit to be easily used in Next.js applications. The example demonstrates how to set up actors, create API routes, and use the React hooks in a Next.js environment. This expands RivetKit's framework support and makes it more accessible to developers using Next.js.

Closes KIT-178, KIT-115
TL;DR
Add Next.js framework support with a working example and update documentation links.
What changed?
@rivetkit/next-jspackage with Next.js integrationexamples/next-jsHow to test?
cd examples/next-js pnpm install pnpm dev/api/registryWhy make this change?
Next.js is one of the most popular React frameworks, and this integration allows RivetKit to be easily used in Next.js applications. The example demonstrates how to set up actors, create API routes, and use the React hooks in a Next.js environment. This expands RivetKit's framework support and makes it more accessible to developers using Next.js.