Overview
Instead of just pushing code changes, you can start a Next.js development server and create a tunnel to share a live preview link in your pull request. This allows reviewers to see the changes in action before merging.1
Install dependencies and start the dev server
Install the project dependencies and start a Next.js development server. Make sure to bind to
0.0.0.0 so the tunnel can access it from outside the devbox.2
Create a tunnel to the dev server
Create a tunnel to port 3000 where the Next.js dev server is running. This will give you a public URL that you can share.
3
Post the preview link to the PR
Post the preview URL as a comment on your pull request so reviewers can view the changes live.
The tunnel URL will remain active as long as the devbox is running and the tunnel is open. Reviewers can click the link to see your changes in real-time. If you suspend the devbox, the tunnel will be unavailable until you resume it.
Next Steps
- Learn how to suspend and resume your devbox for iterative PR feedback
- Explore devbox tunnels for more advanced networking scenarios
