Skip to main content
ProductsDesktop toolsTASTECADDrawing reviewTASTEFILESFile managementTASTEFTPFile transferTASTESSHRemote workspaceTASTEZIPCompression and extractionTASTEWINMFile managementDeveloper toolsTASTECODERust integrated development environmentTASTESTUDIOIntegrated development and test environmentTASTEETLData integration (ETL)ServersTASTEREMOTERemote desktop serverTASTEGEOGeospatial serverTASTEMAILMail workspaceInvestingTASTESTOCKStock auto-trading desktop appGet startedDownloadsDocumentationBuyAll products
Marketplace
News
TechNewsToday's dev newsDeveloper docsProgramming languagesRustTypeScriptJavaScriptPythonGoC#JavaCC++KotlinDartWeb front-end frameworksNext.jsReactVue.js · NuxtSvelteKitAngularServer frameworksSpring BootDjangoFastAPIASP.NET CoreNestJS · ExpressApp & desktop frameworksTauriFlutterReact NativeElectronAlgorithmsAlgorithm basicsCore algorithmsAdvanced algorithmsPractical algorithms
CommunityProjectsDevelopment logsPromptsAI tool issuesShowcaseCommunity guide
Work with usTech transferWebsite buildDesktop app buildRelease and payment pipelineSales partnerContact
ServicesRemote desktopCustom installer packages
TASTEDEV
Products

Desktop tools

TASTECADComplex drawings, opened with easeTASTEFILESJust the files you need, as fast as possibleTASTEFTPThe tidiest path for your filesTASTESSHA stronger link between you and your serversTASTEZIPPack faster, unpack saferTASTEWINMA keyboard-first file manager with two panes

Developer tools

TASTECODEEdit, build, debug and test Rust apps in one windowTASTESTUDIOFrom editing to remote tests and approved AI fixesTASTEETLMove data while you watch the values

Servers

TASTEREMOTEA remote desktop you run on your own serverTASTEGEORebuilding a GeoServer-compatible geospatial server in RustTASTEMAILTake back control of your email

Investing

TASTESTOCKStock auto-trading that follows the rules you set: when, and what

Get started

DownloadsLatest builds of every productDocsHow to use each productBuySubscriptions and perpetual licencesAll productsEvery product at a glance
All products
MarketplaceNews
Tech

News

Today's dev newsOfficial announcements on languages, frameworks, GitHub and AIDeveloper docsGuides to languages, frameworks and algorithms

Programming languages

RustTypeScriptJavaScriptPythonGoC#JavaCC++KotlinDart

Frameworks

Web front-end frameworksNext.jsReactVue.js · NuxtSvelteKitAngular
Server frameworksSpring BootDjangoFastAPIASP.NET CoreNestJS · Express
App & desktop frameworksTauriFlutterReact NativeElectron

Algorithms

Algorithm basicsComplexity analysis · Sorting · Searching · Basic data structures · Trees and heapsCore algorithmsGraph traversal · Shortest paths & minimum spanning trees · Dynamic programming · Greedy algorithms · Divide and conquer · BacktrackingAdvanced algorithmsString algorithms · Math and number theory · Bit manipulation · Segment trees · Union-findPractical algorithmsCoding interview strategy · LRU cache · Rate limiting · Consistent hashing
All development docs
Community
ProjectsDiscover builders and their workDevelopment logsDecisions and lessons learnedPromptsReusable instructionsAI tool issuesProblems and workarounds for Claude, Codex, GeminiShowcaseFinished resultsCommunity guideHow we build in the open
Work with us
Tech transferNative apps in Rust and eguiWebsite build10 languages, accounts, docs and downloadsDesktop app buildRust and egui, no WebViewRelease and payment pipelineSigning, MSI, deb, rpm, AppImage, hashesSales partnerRecommend us and earn 30%ContactBuilds, partnerships and investment
Services
Remote desktopReach your computer from a browserCustom installer packagesOnly the features you need, settings preloaded
Buy
EN
한국어EnglishDeutschEspañolFrançaisItalianoPortuguês (Brasil)日本語简体中文繁體中文
Log in
Log in
TASTEDEV

From small tools to better development.

support@tastedev.netSupport TASTEDEV
ProductsProduct lineupBuyDocsDownloadsMarketplaceSupport
CommunityProjectsDevelopment logsPromptsAI tool issuesShowcase
PoliciesAbout usPrivacy policyTerms of serviceSubscription termsRefund policyCommunity guidelines
AccountLog inSign up
Visitors
Today
Yesterday
Total views
Company
GXSOFT
Representative
CHOI YOUNG GU
Business registration number
853-44-00368
Address
9F V24, 351 Gyeongin-ro, Michuhol-gu, Incheon, Republic of Korea
Phone
+82-10-4404-1523
Email
whitecalvin@tastedev.net
Privacy officer
CHOI YOUNG GU

© 2026 TASTEDEVProduct information is based on verified development sources.Released · improving

Next.js docs
Next.js
Getting Started with Next.jsProject StructureCore ConceptsData and StateTestingDeployment
Discussions

Next.js guide · 6/6

Deployment

You can run a Next.js application as a Node.js server, package it in a Docker container, export it as static files, or deploy it through a platform's own integration. The option you pick determines which features are available, so it pays to understand what a production build produces first.

Building and running for production

next build optimizes your code, writes the production output to the .next folder and prerenders every page that can be rendered statically. When it finishes, it prints each route with a symbol showing whether it was prerendered or will be rendered on the server per request. Check that list for pages that turned dynamic unexpectedly.

npm run build      # next build
npm run start      # next start, port 3000 by default

# run on another port
npx next start -p 8080

The Node.js server started by next start supports every feature: Server Components, Server Actions, Route Handlers, image optimization, revalidation and more. On a single machine, a common setup runs it under a process manager such as pm2 or systemd behind a reverse proxy like Nginx that handles HTTPS and compression.

Standalone output

To avoid shipping all of node_modules to the server, set output: "standalone". The build traces the files the app actually needs, copies them into .next/standalone, and generates a small server.js you can run instead of next start.

// next.config.ts
import type { NextConfig } from "next";

const nextConfig: NextConfig = {
  output: "standalone",
};

export default nextConfig;

This server does not copy the public and .next/static folders automatically. Unless a CDN serves them, copy them yourself before starting. The PORT and HOSTNAME environment variables control where it listens.

cp -r public .next/standalone/
cp -r .next/static .next/standalone/.next/
PORT=8080 HOSTNAME=0.0.0.0 node .next/standalone/server.js

Deploying with Docker

Standalone output is especially handy for small Docker images. A multi-stage build separates installing dependencies, building and running, so the final image contains only what is needed at runtime.

FROM node:lts-alpine AS deps
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci

FROM node:lts-alpine AS builder
WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY . .
RUN npm run build

FROM node:lts-alpine AS runner
WORKDIR /app
ENV NODE_ENV=production
ENV PORT=3000
ENV HOSTNAME=0.0.0.0
COPY --from=builder /app/public ./public
COPY --from=builder /app/.next/standalone ./
COPY --from=builder /app/.next/static ./.next/static
EXPOSE 3000
CMD ["node", "server.js"]

When you run several containers, you may need to share cached and revalidated data between instances. See the cache handler section of the official self-hosting guide.

Static exports

To serve the site as plain HTML, CSS and JavaScript with no server, set output: "export". next build then writes static files to the out folder, ready for Nginx, Apache, object storage or GitHub Pages.

// next.config.ts
const nextConfig = {
  output: "export",
  trailingSlash: true,
};

export default nextConfig;

Features that need a server at request time are not available: dynamic rendering that reads cookies, Server Actions, Route Handlers that compute a response per request, revalidation and the default image optimization are all limited. If you need them, choose a Node.js server or a platform deployment instead.

Deploying to platforms

Vercel, the company behind Next.js, deploys a connected Git repository with no extra configuration. Other platforms support Next.js through deployment adapters or their own integrations. Feature coverage varies by provider, so read each provider's Next.js documentation.

Environment variables and a checklist

  • Variables prefixed with NEXT_PUBLIC_ are inlined into browser code at build time. Changing them requires a rebuild.
  • Server-only variables are read at runtime, so inject them through the server or container environment.
  • Before going live, review the static and dynamic markers in the next build output, image optimization, metadata and error pages (error.tsx, not-found.tsx).
  • Walk through the official Production Checklist for performance, security and accessibility.

Summary

  • next build followed by next start gives you every Next.js feature.
  • output: "standalone" collects only the required files and keeps Docker images small.
  • output: "export" enables static hosting but drops server features.
  • Check feature coverage when deploying to a platform, and remember that NEXT_PUBLIC_ values are fixed at build time.

Official documentation

  • Next.js Docs
  • Deploying
  • Self-Hosting
  • Static Exports
  • Production Checklist
  • next.config.js output
Questions about this chapter?
Previous chapterTesting

0 comments

Top commentsNewest first

Sign in · Sign in to leave a comment.