diff --git a/deploy.sh b/deploy.sh index d1869ce..156561c 100644 --- a/deploy.sh +++ b/deploy.sh @@ -1,8 +1,4 @@ #!/usr/bin/env bash echo "> FE 배포" - -cd /home/ubuntu/fridge-link-deploy - -nohup yarn start & - +sudo cp -rf /home/ubuntu/fridge-link-deploy/build/* /var/www/html \ No newline at end of file diff --git a/next.config.js b/next.config.js index 408b379..29ffa44 100644 --- a/next.config.js +++ b/next.config.js @@ -4,6 +4,7 @@ const nextConfig = { images: { domains: ['mara-s3bucket.s3.ap-northeast-2.amazonaws.com'], }, + distDir: 'build', webpack: (config) => { return { ...config,