정적 사이트를 만들기 위해 빌드를 하면서 찾아본 과정에서는
output: "export",추가하고const nextConfig = {
output: "export",
};
module.exports = nextConfig;build에 && next export 추가~!"build": "next build && next export",The "next export" command has been removed in favor of "output: export" in next.config.js. Learn more: https://nextjs.org/docs/advanced-features/static-html-export
next.js 14버전에서는
output: "export",추가하고const nextConfig = {
output: "export",
};
module.exports = nextConfig;build에 && next export 추가하면 안된다!!❌❌❌❌❌"build": "next build",
- 하단 읽어보시면
output: "export"에next export가 대체된거같다.
[참고주소]https://nextjs.org/docs/14/app/building-your-application/deploying/static-exports
아래 공식문서 참고하면서 작업하세용!
https://nextjs.org/docs/14/app/building-your-application/deploying/static-exports