本文へスキップ
製品デスクトップツール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製品情報は検証済みの開発ソースに基づいています。リリース・改善中

Vue.js · Nuxt ドキュメント
Vue.js · Nuxt
Getting Started with Vue and NuxtProject StructureCore Concepts: SFCs, Reactivity, Components, Nuxt RoutingData and StateTestingBuild and Deployment
ディスカッション

Vue.js · Nuxt ガイド · 6/6

Build and Deployment

この章は現在、英語でのみ提供しています。

This chapter covers building a Vue project into static files and deploying it, and building a Nuxt project with a Nitro preset to deploy as a Node.js server or a static site.

Vue projects: vite build

In a create-vue project, npm run build creates a production build with Vite; TypeScript projects also run type checking with vue-tsc. The output lands in dist/ as HTML plus JS and CSS files with content hashes in their names.

npm run build      # produce dist/
npm run preview    # serve the build locally to check it

Because dist/ contains only static files, you can host it on Nginx, object storage, a CDN or any static hosting service. If the app is served from a sub-path such as /app/, set base: "/app/" in vite.config.ts. Environment variables prefixed with VITE_ are inlined into the bundle at build time, so never put secrets in them.

SPA routing and server configuration

With Vue Router's createWebHistory, visiting or refreshing a URL such as /about makes the server look for a file at that path and return 404. Configure the server to fall back to index.html for unknown paths.

server {
  listen 80;
  root /usr/share/nginx/html;

  location / {
    try_files $uri $uri/ /index.html;
  }

  location /assets/ {
    add_header Cache-Control "public, max-age=31536000, immutable";
  }
}

Files under assets/ carry a content hash in their names, so long-lived caching is safe. Keep the cache lifetime for index.html short so new deployments show up right away.

Nuxt projects: nuxi build and Nitro

Nuxt builds with its server engine, Nitro. Running npm run build (nuxi build) writes server code and static assets together into .output/. With the default node-server preset, you can run the result directly with Node.js.

npm run build
node .output/server/index.mjs

# port and runtime config come from environment variables
PORT=8080 NUXT_API_SECRET=change-me node .output/server/index.mjs

.output/ already bundles the dependencies it needs, so there is no need to install node_modules on the server.

Choosing a preset

Nitro can build the same app for many deployment targets. Pick the target with nitro.preset in nuxt.config.ts or the NITRO_PRESET environment variable. On platforms such as Vercel, Netlify and Cloudflare, the build environment is often detected and the right preset selected automatically.

この章について質問がありますか?
前の章Testing
export default defineNuxtConfig({
  nitro: { preset: "node-server" },
  routeRules: {
    "/": { prerender: true },          // generate HTML at build time
    "/blog/**": { swr: 3600 },         // cache, revalidate in the background
    "/admin/**": { ssr: false },       // render on the client only
  },
});

Mixing rendering strategies per path with routeRules is one of Nuxt's strengths.

Deploying as a static site

To deploy to static hosting without a server, use nuxi generate. It crawls links, prerenders pages and writes HTML into .output/public/. In this mode server/api is not deployed, so rely on data available at build time or call external APIs.

npx nuxi generate
# upload .output/public/ to your static host

Deploying a Nuxt server with Docker

When running Nuxt as a Node.js server, a Docker image with separate build and runtime stages keeps things tidy.

FROM node:lts-alpine AS build
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build

FROM node:lts-alpine
WORKDIR /app
COPY --from=build /app/.output ./.output
ENV NODE_ENV=production PORT=3000
EXPOSE 3000
CMD ["node", ".output/server/index.mjs"]

Summary

  • Build a Vue project into dist/ with npm run build, upload it to static hosting, and fall back to index.html for SPA routes.
  • Nuxt's nuxi build produces .output/; with the node-server preset, run it with node .output/server/index.mjs.
  • Choose the deployment target with a Nitro preset and per-path rendering with routeRules.
  • To deploy without a server, generate a static site with nuxi generate.

Official docs: Vue Production Deployment, Vite: Deploying a Static Site, Nuxt Deployment, Nitro Deploy

コメント 0件

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

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