Movatterモバイル変換


[0]ホーム

URL:


Skip to content
Important
Security Advisory: React2Shell & two new vulnerabilities
Find out more

Deploying

Last updated November 8, 2025

Next.js can be deployed as a Node.js server, Docker container, static export, or adapted to run on different platforms.

Deployment OptionFeature Support
Node.js serverAll
Docker containerAll
Static exportLimited
AdaptersPlatform-specific

Node.js server

Next.js can be deployed to any provider that supports Node.js. Ensure yourpackage.json has the"build" and"start" scripts:

package.json
{"scripts": {"dev":"next dev","build":"next build","start":"next start"  }}

Then, runnpm run build to build your application andnpm run start to start the Node.js server. This server supports all Next.js features. If needed, you can also eject to acustom server.

Node.js deployments support all Next.js features. Learn how toconfigure them for your infrastructure.

Templates

Docker

Next.js can be deployed to any provider that supportsDocker containers. This includes container orchestrators like Kubernetes or a cloud provider that runs Docker.

Docker deployments support all Next.js features. Learn how toconfigure them for your infrastructure.

Note for development: While Docker is excellent for production deployments, consider using local development (npm run dev) instead of Docker during development on Mac and Windows for better performance.Learn more about optimizing local development.

Templates

Static export

Next.js enables starting as a static site orSingle-Page Application (SPA), then later optionally upgrading to use features that require a server.

Since Next.js supportsstatic exports, it can be deployed and hosted on any web server that can serve HTML/CSS/JS static assets. This includes tools like AWS S3, Nginx, or Apache.

Running as astatic exportdoes not support Next.js features that require a server.Learn more.

Templates

Adapters

Next.js can be adapted to run on different platforms to support their infrastructure capabilities.

Refer to each provider's documentation for information on supported Next.js features:

Note: We are working on aDeployment Adapters API for all platforms to adopt. After completion, we will add documentation on how to write your own adapters.

Was this helpful?

supported.

[8]ページ先頭

©2009-2025 Movatter.jp