Knowledge Hub

The HQ Knowledge Hub

Plain-English guides to HQ, from your first install to rolling it out across your whole team.

On this page

Help & Reference

Deploying Full-Stack Apps: Next.js and Hono

2 min read Updated Nov 2026

Builders who want to put a full web app, with its own server code, on HQ Deploy. If you're sharing a report or a simple page, Sharing Your Work is all you need.

Most things people share from HQ are simple pages: a report, a dashboard, a deck. Those deploy with no setup. A full-stack app is different. It runs its own server code, for example to save form submissions, call other services, or show data that changes.

HQ Deploy supports two ways to build a full-stack app:

  • Next.js 15
  • Hono 4

If you're starting a new app that needs server code, build it with one of these.

Deploying your app#

From an HQ session, ask HQ to "deploy this," or type /deploy, from your app's folder. HQ works out what kind of project it is. A Next.js app that only exports static pages, or a plain site, is built, previewed on your computer, and published to a link, usually like https://your-app.indigo-hq.com.

A Next.js app that needs a server (server rendering, route handlers, or middleware) and any Hono app deploy through the hq-deploy command-line tool instead, and HQ hands off to it. The first time, link the app to your company with hq-deploy link --org <your-company>. After that, hq-deploy deploy publishes it. These apps deploy to production only. For more on the tool, see Deploying Your Own Web App.

How these apps run#

  • They run on HQ's servers. You don't manage a server or a container.
  • Production only. Each deploy replaces the live version.
  • Next.js builds need Node 20 on Linux. Build on a 64-bit Linux computer with Node 20 installed. The build stops on a Mac or Windows.

Passwords and keys your app needs#

Never put passwords or API keys in your code. Store them in your company's vault, and HQ gives your app access to them when it runs. See the Secrets Guide.

If your app uses stored secrets, HQ won't publish it as a public link without checking with you first. A public app that can use your company's keys could be used by anyone who finds it. Add access control (a password, company-only, or specific people) or confirm you understand the risk.

Other kinds of projects#

  • Static sites (plain HTML, Vite, Astro, and Next.js sites with no server code) deploy with no extra setup.
  • A project with an api/ folder at the top level (for example, a Vite site with .ts or .js handler files in api/) deploys with /deploy as a site plus backend routes. HQ publishes the pages and runs the api/ handlers for you on the same link. These apps can also use your stored secrets and, if you ask for one, a built-in HQ database. HQ tells you what the database costs and asks before adding it.

Common questions#

Do I need to know which type my project is?

No. HQ detects it when you deploy.

Can people leave feedback on my app?

Not on full-stack apps yet. Comments only work on static sites and pages. Next.js server apps, Hono apps, and apps with an api/ folder don't get the comment tool. For static pages, see Getting Feedback with Comments on Your Deploys.

If you get stuck#

See Deploying Your Own Web App for the command-line details, or report it with /hq-bug. It packages the details for the team automatically.