What you’ll learn
Next.js
Build modern React applications
Server-Side Rendering
Enable SSR for better performance
Autoscaling
Publish with automatic scaling
Performance
Optimize for production
Create your app
1
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.
2
Set up publishing
- Select Publish in the workspace header
- Choose Autoscale deployment
- Configure your app:
- 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.
3
Launch
Select Publish to launch your app. It will be live in a few minutes!
Next steps
Related guides
Want to learn more about web development? Check out our publishing documentation.