From 4ed24efa5a35933911c43a3abdc27f7b89887111 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=ED=95=9C=ED=98=9C=EC=84=A0?= Date: Tue, 20 Feb 2024 22:34:33 +0900 Subject: [PATCH] =?UTF-8?q?ci:=20deploy.sh=20=EC=88=98=EC=A0=95=20(#22)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy.sh | 6 +----- next.config.js | 1 + 2 files changed, 2 insertions(+), 5 deletions(-) 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,