For Next.js

Put your  Next.js export online  with one sentence.

heyweb hosts a Next.js site that is exported as static files: it builds the project and puts the out folder online. Your client then changes texts and pictures in a chat, and the change lands in your source.

Add heyweb to your agentSee how it works

TL;DR

To host a Next.js site on heyweb, set output: "export" in next.config, open the project in your coding agent and paste the heyweb setup line. heyweb runs the build on its own build machine and puts the out folder online at an address like your-site.heyweb.page. It hosts the static export only. A client can change its texts, links and pictures by chat: heyweb writes the change into your source and builds the site again.

Next.js as a static site

Next.js is first of all a framework for apps that run on a server. It can also write a site out as finished files: with output: "export" in next.config, the build puts HTML, CSS and JavaScript into a folder named out. Any host for static files can serve that folder, and heyweb is one.

Many sites that coding agents build with Next.js are brochure sites that never needed a server. For those, the static export is enough.

From your project to a live address

Three steps, and none before you paste. Your coding agent does the typing.

  1. Step 1: Paste one sentence into your agent

    Open the folder of your Next.js project in your coding agent and send this sentence. You do not have to sign up first.

    Set up heyweb from app.heyweb.ai/start and put this site online.
  2. Step 2: Connect when the agent asks

    The agent installs the heyweb program and runs it. Your browser opens heyweb: sign in with your email address and the code you get by email, check that the agent shows the same short code and press Connect.

  3. Step 3: Get your address

    heyweb builds the site, and the agent replies with an address like your-site.heyweb.page. The site appears in your heyweb account.

Next.js on heyweb, in short

What the heyweb program finds in your project and what it does with it.

With heyweb
How it is recognised“next” among the packages in package.json
What builds the siteYour project’s own build script (npm run build) if it has one, otherwise npx next build
Folder that goes onlineout, which Next.js writes with output: "export"
Where it is builtOn a heyweb build machine with Node.js, started fresh for every build
PackagesInstalled from your lock file with npm, pnpm or yarn
Preview on your computerYour project’s own dev script if it has one, otherwise npx next dev
Client edits by chatYes, texts, links and pictures, through your source (early access); list entries stay as they are

The settings are written to heyweb.json in your project: “publish” is the folder, “build” the command, “dev” the preview. Your agent can change them there.

Before you publish: the static export

heyweb needs the out folder. Without output: "export" in next.config there is none, and the site does not go online. The heyweb program says so when it sets the project up, and your agent can add the line.

A static export leaves out what needs a server while visitors browse: server actions, middleware, pages rendered for each request, rewrites and redirects from next.config, and the built-in image optimisation, which needs a custom loader or unoptimized images. If the site uses one of these, your agent has to replace it first.

Paste this into your agent.

Set up heyweb from app.heyweb.ai/start and put this site online.

Free until a site goes live. Then $12 a month per site, plus tax.

What your client can change

Your client asks for a change in a chat, in their own words: “The plum cake is €4.80 now”. On a site with a build step, heyweb does not patch the finished page, because your next build would overwrite it. It writes the change into your source, where the text comes from, builds the site again and compares the result with the change that was asked for.

Only when the built pages show exactly that change, and no design, script or other page moved, does it go live, about a minute later. Otherwise nothing is changed, and your client is told that the designer has to make it.

When you next work on the site, your agent fetches the client’s changes first. They arrive in your source files, so nothing is overwritten. More in let a client edit a static website.

A page built with Next.js carries its texts twice: in the HTML, and in the JavaScript that Next.js runs in the browser. That is why the change goes through your source and a new build, which makes both. heyweb checks both: apart from the file names every new build gives, nothing but the text that was asked for may change in Next.js’s scripts.

One limit: on a Next.js site the chat changes texts, links and pictures, but it does not add, remove or reorder entries of a list, such as a new team member or another price. That would change the shape of Next.js’s own copy, so your client is told that you make it. Text that the page only loads while it runs in the browser is not in the build, and the chat cannot change it either.

What is ready today

Hosting at a heyweb.page address, setup through your coding agent, the history and undo work today. Sites with a build step are part of early access, and so are the client chat, inviting clients and your client’s own domain.

heyweb is tested with Claude Code, Codex and Cursor, and works with any agent that can run a command on your computer. Building and previewing a site is free. A live site costs $12 per month plus tax, see pricing.

Common questions

Can I host a Next.js site as static files?

Yes, when it is built with output: "export" in next.config. The build then writes the site into the out folder, which heyweb puts online.

How do I put a Next.js site on heyweb?

Paste the heyweb setup sentence into your coding agent in the Next.js project. heyweb recognises Next.js, builds the site, and the agent replies with an address like your-site.heyweb.page. The sentence is on add heyweb to your agent.

Does heyweb run server actions, API routes or middleware?

No. heyweb hosts finished files and runs no code when a visitor arrives. A site that needs those belongs on a host that runs Next.js on a server; heyweb or Vercel compares the two.

Can my client edit a Next.js site by chat?

Yes, its texts, links and pictures. Next.js keeps a copy of each page’s text for the browser, so heyweb does not patch the finished page: it writes the change into your source, runs next build again and puts the result online once both copies show exactly that change, about a minute later.

Can my client add an entry to a list on a Next.js site?

Not by chat. Texts, links and pictures can be changed, but adding, removing or reordering list entries would change the shape of Next.js’s own copy of the page. The client is told that the designer makes that change, and you add the entry in the code.

Is Next.js support ready today?

Sites with a build step, Next.js included, are part of early access, and so is the client chat. Hosting at a heyweb.page address, setup through your agent, the history and undo work today.

What does it cost?

Building a site and previewing it at its heyweb.page address is free. A live site costs $12 per month, plus tax, with editing by chat included; the details are on the pricing page.

Keep reading

Publish the next one by saying so.

Add heyweb to your agentSee how it works

Paste this into your agent.

Set up heyweb from app.heyweb.ai/start and put this site online.
  1. Paste it
  2. Connect with your email
  3. Your site is online

Free until a site goes live. Then $12 a month per site, plus tax. How setup works