next.js 배포 Dot Programming/React ∙ Next.js 2021. 1. 14. AWS로 Next.js 배포하기1 (next.config .js) Next.js 배포하기1 (next.config .js) Root 디렉토리에 next.config.js파일을 생성하면 next의 설정을 변경할 수 있다. 1.next.config.js 설정 nextConfig는 전역설정으로 배포에 관련된 코드를 작성한 것이다. next.config.js const path = require('path'); const withPlugins = require('next-compose-plugins'); const withImages = require('next-images'); const withVideos = require('next-videos'); const withBundleAnalyzer = require('@next/bundle-analyzer')({ enable.. 이전 1 다음