My Next.js app runs on a server. How do I put it online?
Furge publishes websites as files, so it can't run an app with parts that run on a server, like a Next.js app with middleware or server routes. Vercel can, on your own Vercel account (free for personal projects, Vercel's Pro plan for a business), and it deploys each push to the branch. When Import from GitHub finds such an app, it offers Host it on Vercel: Vercel's import page opens with your repository, and the app gets a card on Projects. Paste the address Vercel gives it there, and Furge checks that it answers. A site whose build already failed for this reason offers the same in its GitHub settings, and Furge then takes its build file out of the branch. Furge runs none of the app's code; its deploys, settings and domains are on Vercel.
Steps
- On Home, press Import from GitHub and choose the app's repository.
- Press Host it on Vercel. On Vercel, sign in with GitHub, add the app's settings under Environment Variables (Furge lists them from its .env.example), and press Deploy.
- Back in Furge, paste the address Vercel shows (like your-app.vercel.app) and press Save. The app's card on Projects keeps it.
Also asked as
- host on vercel
- deploy to vercel
- vercel
- link vercel to furge
- next.js app with middleware
- my app has server routes
- api routes
- server app
- furge can't publish my app
- where do i host my next.js app
- next.js with supabase
- my app's address on vercel
Related
Still stuck? Ask Furge Help, the round chat button at the bottom right, or contact the Furge team.