Tutorials

Deploy your Next.js Application with Puter

On this page

In this guide, you'll learn how to use Puter to deploy your static Next.js app for free. Puter is a cloud operating system, with hosting, cloud storage, and much more built in, allowing you to easily deploy your Next.js app.

Deploying your Next.js App

Step 1: Prepare Your App

For static Next.js apps, you need to configure your app to output a static export. Open your next.config.js (or next.config.mjs) file and set the output to export:

const nextConfig = {
  output: 'export',
};

module.exports = nextConfig;

Then, run the build command to generate your static files:

npm run build

After the build completes, your static files will be in the out folder. This is the folder you'll upload to Puter.

Next.js static output folder

Step 2: Upload Your App to Puter

  1. Go to Puter.com

  2. Drag the out folder from your local machine into Puter cloud desktop

Uploaded files
  1. Open to folder to verify that your Next.js app is uploaded
Uploaded files

Step 3: Publish Your Next.js App

  1. In the same folder, right-click and select Publish as Website
Context Menu: Publish as Website
  1. Choose your free subdomain (e.g., yoursite.puter.site) and click Publish
Choose free subdomain
  1. Congratulations, you have successfully published your Next.js app!
Publish website

Free Next.js Hosting with Puter

With Puter, you can easily host your Next.js project — simply upload your website files and publish. You don't need any complex configuration, servers, or credit cards. Your website is instantly accessible on the internet, and updating it is as simple as replacing your files. No dashboards to navigate, no technical setup required — just straightforward file management.

Beyond hosting, Puter makes it easy to add powerful features to your app. With Puter.js, you can integrate databases, AI capabilities, cloud storage, and more — all without managing backend infrastructure.

Free, Serverless AI and Cloud

Start creating powerful web applications with Puter.js in seconds!

Get Started Now

Read the Docs Try the Playground