Skip to content

Next.config.js

정적 내보내기

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

module.exports = nextConfig

output: 'export' 옵션을 사용하면 된다.

터미널에서 next build명령 수행 시, 프로젝트의 /out 디렉토리에 애플리케이션의 실행에 필요한 HTML/CSS/JS 파일을 생성한다.

See also