Configuration
Standalone output
Set output to standalone to produce a traced Node server artifact. The minimal server does not automatically package public and .next/static. Review the final artifact for unintended configuration files, including environment defaults that may be copied by the framework. Do not build with production secrets in an unreviewed workspace. Source: https://nextjs.org/docs/app/api-reference/config/next-config-js/output. Documentation-reviewed illustrative draft; installed declarations and runtime not verified.
Formal Syntax & Structure
nextjs syntaxnextjs
output: 'standalone'Working Example
Example Snippetnextjs
import type {NextConfig} from 'next';const config:NextConfig={output:'standalone'};export default config;