프로젝트 최상단에 있는 next.config.js 파일에 output: 'export'를 넣어준다.
output: 'export'
/** @type {import('next').NextConfig} */ const nextConfig = { output: 'export', } module.exports = nextConfig
npm run build
out 폴더 내에 정적파일로 빌드된 것을 볼 수 있다.