Skip to content
Search

Next.config.js

lastmod 2025-10-17created 2025-10-173 edits

Static export

const nextConfig = {
  // ...
  output: 'export',
  trailingSlash: true,
  images: {
    unoptimized: true
  }
}

module.exports = nextConfig

Use the output: 'export' option.

When you run the next build command in a terminal, the HTML/CSS/JS files needed to run the application are generated in the project's /out directory.

See also

author Zer0 sitemap