本文へスキップ
製品デスクトップツールTASTECAD図面の確認TASTEFILESファイル管理TASTEFTPファイル転送TASTESSHリモートワークスペースTASTEZIP圧縮と展開TASTEWINMファイル管理開発ツールTASTECODERust 統合開発環境TASTESTUDIO統合開発・テスト環境TASTEETLデータ統合(ETL)サーバーTASTEREMOTEリモートデスクトップサーバーTASTEGEO空間情報サーバーTASTEMAILメールワークスペース投資TASTESTOCK株式自動売買デスクトップアプリはじめるダウンロードドキュメント購入すべての製品
マーケットプレイス
ニュース
技術ニュース今日の開発ニュース開発ドキュメントプログラミング言語RustTypeScriptJavaScriptPythonGoC#JavaCC++KotlinDartWebフロントエンド フレームワークNext.jsReactVue.js · NuxtSvelteKitAngularサーバー フレームワークSpring BootDjangoFastAPIASP.NET CoreNestJS · Expressアプリ・デスクトップ フレームワークTauriFlutterReact NativeElectronアルゴリズムアルゴリズムの基礎主要アルゴリズム発展アルゴリズム実務のアルゴリズム
コミュニティプロジェクト開発ログプロンプトAIツールの問題ショーケースコミュニティガイド
協業技術移転ウェブサイト構築デスクトップアプリ構築リリース・決済パイプライン販売パートナーお問い合わせ
サービスリモートデスクトップインストールパッケージのカスタマイズ
TASTEDEV
製品

デスクトップツール

TASTECAD複雑な図面を、軽やかにひらくTASTEFILES必要なファイルだけを、最速でTASTEFTPファイルが行き交う、いちばん端正な道TASTESSHサーバーとあなたを、より確かにつなぐTASTEZIPより速くまとめ、より安全にひらくTASTEWINM2つの画面で整理する、キーボード中心のファイルマネージャー

開発ツール

TASTECODERust アプリの編集・ビルド・デバッグ・テストまでひとつのウィンドウでTASTESTUDIO編集からリモートテスト、承認した AI 修正までTASTEETL値を見ながら、データを運ぶ

サーバー

TASTEREMOTE自社サーバーで運用するリモートデスクトップTASTEGEOGeoServer 互換の空間情報サーバーを Rust で作り直しますTASTEMAILメールの主導権を、もう一度自分の手に

投資

TASTESTOCKいつ・何を。自分で決めたルールどおりに動く株式自動売買

はじめる

ダウンロード全製品の最新版ドキュメント各製品の使い方購入サブスクリプション・永久ライセンスすべての製品全製品を一覧で
すべての製品
マーケットプレイスニュース
技術

ニュース

今日の開発ニュース言語・フレームワーク・GitHub・AI の公式発表開発ドキュメント言語・フレームワーク・アルゴリズムのガイド

プログラミング言語

RustTypeScriptJavaScriptPythonGoC#JavaCC++KotlinDart

フレームワーク

Webフロントエンド フレームワークNext.jsReactVue.js · NuxtSvelteKitAngular
サーバー フレームワークSpring BootDjangoFastAPIASP.NET CoreNestJS · Express
アプリ・デスクトップ フレームワークTauriFlutterReact NativeElectron

アルゴリズム

アルゴリズムの基礎計算量解析 · ソート · 探索 · 基本データ構造 · 木構造とヒープ主要アルゴリズムグラフ探索 · 最短経路と最小全域木 · 動的計画法 · 貪欲法 · 分割統治法 · バックトラッキング発展アルゴリズム文字列アルゴリズム · 数学と整数論 · ビット演算 · セグメント木 · Union-Find実務のアルゴリズムコーディング面接対策 · LRUキャッシュ · レート制限 · コンシステントハッシュ法
開発ドキュメントをすべて見る
コミュニティ
プロジェクトビルダーと作品を探す開発ログ決定と試行錯誤プロンプト再利用できる指示AIツールの問題Claude・Codex・Gemini の問題と回避策ショーケース完成した成果コミュニティガイドオープンにつくる方法
協業
技術移転Rust・egui でネイティブアプリを作るウェブサイト構築10言語、アカウント、ドキュメントとダウンロードデスクトップアプリ構築Rust・egui、WebView なしリリース・決済パイプライン署名・MSI・deb・rpm・AppImage・ハッシュ販売パートナー紹介して決済額の30%お問い合わせ構築・提携・投資のご相談
サービス
リモートデスクトップブラウザから自分のパソコンへインストールパッケージのカスタマイズ必要な機能だけ、設定は事前に
購入
JA
한국어EnglishDeutschEspañolFrançaisItalianoPortuguês (Brasil)日本語简体中文繁體中文
ログイン
ログイン
TASTEDEV

小さなツールから、より良い開発へ。

support@tastedev.netTASTEDEVを支援
製品製品ラインナップ購入ドキュメントダウンロードマーケットプレイスサポート
コミュニティプロジェクト開発ログプロンプトAIツールの問題ショーケース
ポリシー会社概要プライバシーポリシー利用規約サブスクリプション規約返金ポリシーコミュニティガイドライン
アカウントログイン新規登録
訪問者
今日
昨日
累計閲覧
商号
GXSOFT
代表者
CHOI YOUNG GU
事業者登録番号
853-44-00368
所在地
9F V24, 351 Gyeongin-ro, Michuhol-gu, Incheon, Republic of Korea
電話
+82-10-4404-1523
メール
whitecalvin@tastedev.net
個人情報保護責任者
CHOI YOUNG GU

© 2026 TASTEDEV製品情報は検証済みの開発ソースに基づいています。リリース・改善中

Next.js ドキュメント
Next.js
Getting Started with Next.jsProject StructureCore ConceptsData and StateTestingDeployment
ディスカッション

Next.js ガイド · 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"]
この章について質問がありますか?
前の章Testing

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

コメント 0件

人気のコメント順新しい順

ログイン · ログインするとコメントできます。