Create a Next.js app
Build and deploy a modern React application using Next.js on Replit. Learn how to use server-side rendering and static generation.
Learn how to create a Next.js application with server-side rendering capabilities. This guide shows you how to deploy a React app using Replit’s autoscaling deployment.
What you’ll learn
Next.js
Build modern React applications
Server-Side Rendering
Enable SSR for better performance
Autoscaling
Deploy with automatic scaling
Performance
Optimize for production
Create your app
Fork the template
Sign in to Replit and fork the Next.js template. Select + Use Template and follow the prompts to create your Replit App.
Configure deployment
- Select Deploy in the workspace header
- Choose Autoscale deployment
- Configure your deployment:
- Machine: 1vCPU, 2 GiB RAM (default)
- Max machines: 3 (default)
- Build command:
npm run build
- Run command:
npm run start
Autoscale deployments automatically adjust resources based on traffic.
Launch
Select Deploy to start the deployment process. Your app will be live in a few minutes!
Next steps
Related guides
Want to learn more about web development? Check out our deployment documentation.
Was this page helpful?