Skip to content

Commit

Permalink
chore: add jsdoc to output in next.config.js (#46804)
Browse files Browse the repository at this point in the history
- Follow up to #46744
  • Loading branch information
styfle committed Mar 5, 2023
1 parent a0c5a63 commit 4c723f4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/next/src/server/config-shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,14 @@ export interface NextConfig extends Record<string, any> {
}
}

/**
* The type of build output.
* - `undefined`: The default build output, `.next` directory, that works with production mode `next start` or a hosting provider like Vercel
* - `'standalone'`: A standalone build output, `.next/standalone` directory, that only includes necessary files/dependencies. Useful for self-hosting in a Docker container.
* - `'export'`: An exported build output, `out` directory, that only includes static HTML/CSS/JS. Useful for self-hosting without a Node.js server.
* @see [Output File Tracing](https://nextjs.org/docs/advanced-features/output-file-tracing)
* @see [Static HTML Export](https://nextjs.org/docs/advanced-features/static-html-export)
*/
output?: 'standalone' | 'export'

// A list of packages that should always be transpiled and bundled in the server
Expand Down

0 comments on commit 4c723f4

Please sign in to comment.