Does the page need a server when someone visits?
Use a Node.js web app on Bothosting if Next.js reads a visitor’s session cookie, renders a page for that request or handles a form with a Server Action. Use Static site if every page can be generated at build time. A blog that reads Markdown during the build can use static export. An account page that reads the signed-in user’s orders needs a server. Next.js deployment options.
Run a production Next.js server
Choose a Node.js web app under Website hosting. Upload the project source, configuration, assets, npm manifest and lockfile at the project root. For a standard Next.js server, the package scripts should include "build": "next build" and "start": "next start". Set RUN_COMMAND to the command below. It installs build dependencies, compiles the app, then starts the server on the port assigned to this deployment.
npm ci --include=dev && npm run build && npm start -- --hostname 0.0.0.0 --port "$SERVER_PORT"This command rebuilds on every start. Allow memory and disk for compilation as well as the running app. If startup stops during next build, read the first build error in Console before debugging DNS. If the build succeeds but the public address fails, compare the listening port with SERVER_PORT. Next.js start options.
Publish a static export with nested URLs
In your Next.js configuration, set output: 'export' and trailingSlash: true. Run npm run build locally or in CI. A route such as /about/ should produce out/about/index.html. Check that the build generated every route you want to publish. Next.js static export guide.
Choose Static site. Copy the contents of out/, including _next/, into the deployment’s public/ directory. You should see public/index.html and public/_next/ alongside each other. Set MAIN_FILE to public/index.html, start the deployment and select Publish website. Bothosting website publishing guide.
Test the route that determined your choice
On a static export, open a nested URL directly and hard-refresh it. A home page without styling often means the HTML uploaded successfully but the _next/ assets are missing. On a server deployment, try the action that needs a live server, such as signing in with a test account and loading its orders. A working home page alone exercises neither the session cookie nor the database request.