tuqo
Deploy Next.js

Deploy Next.js (static export)

Next.js in static export mode (output: 'export') builds into out/. Tuqo builds it and publishes the static site over HTTPS. Suitable for static sites; SSR and server functions do not run.

Build output: out/ · Node 20 · free SSL
1

Turn on static export

Set output: 'export' in next.config.js, and Next builds the site into out/.

2

Build on Node 20

npm ci && npm run build, with the output taken from out/.

3

Published over HTTPS

The site is on a subdomain right away, free SSL, a custom domain from the Start plan.

# build locally and upload, or upload the sources and let Tuqo build them
npm ci && npm run build        # output in out/

# pack the output (index.html must be at the root of the archive)
tar -czf site.tar.gz -C out .

# deploy over REST (or from the panel, or from an AI agent over MCP)
SITE=<site_id>   # from the panel or list_sites
curl -X POST https://api.tuqo.ru/api/v1/sites/$SITE/deploys \
  -H "Authorization: Bearer tqk_xxx_yyy" \
  -H "Content-Type: application/gzip" \
  --data-binary @site.tar.gz

The command line is not the only way: in the panel you can simply drag the site folder in, and instead of .tar.gz a .zip works too — Tuqo detects the archive format by itself.

Deploying Next.js — frequently asked questions

Is Next.js SSR supported? +

No. Tuqo is static hosting: use static export mode (output: 'export').

What is the output folder? +

With static export, Next.js builds into out/, and Tuqo picks it up automatically.

Do API routes work? +

No, server functions do not run. Static pages only.

Deploy other stacks