From c49113f670956beb5ec274dd7ceef807fdb0c4ac Mon Sep 17 00:00:00 2001 From: zaeyon Date: Sun, 6 Aug 2023 13:04:40 +0900 Subject: [PATCH] fix: main page width change --- Dockerfile | 4 ++-- app/api/campaign.ts | 8 +++++++- app/api/index.ts | 2 +- app/components/CreatorRanking.module.scss | 1 + app/page.module.scss | 6 ++++-- next.config.js | 6 ++++++ 6 files changed, 21 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index f68a80a..005f540 100644 --- a/Dockerfile +++ b/Dockerfile @@ -27,10 +27,10 @@ COPY . . # Uncomment the following line in case you want to disable telemetry during the build. # ENV NEXT_TELEMETRY_DISABLED 1 -RUN yarn build +# RUN yarn build # If using npm comment out above and use below instead -# RUN npm run build +RUN npm run build # Production image, copy all the files and run next FROM base AS runner diff --git a/app/api/campaign.ts b/app/api/campaign.ts index 4bf598c..9178946 100644 --- a/app/api/campaign.ts +++ b/app/api/campaign.ts @@ -9,7 +9,13 @@ export const POST_createCampaign = (newCampaign: any) => { let formData = new FormData(); for (let key in newCampaign) { - formData.append(key, newCampaign[key]); + if(key === "additional_files") { + if(newCampaign[key]) { + formData.append(key, newCampaign[key]); + } + } else { + formData.append(key, newCampaign[key]); + } } /* value 확인하기 */ diff --git a/app/api/index.ts b/app/api/index.ts index ca34c32..439ce4e 100644 --- a/app/api/index.ts +++ b/app/api/index.ts @@ -1,7 +1,7 @@ import axios from 'axios'; import { getCookie } from '../lib/cookie'; -export const baseUrl = 'http://localhost:8000'; +export const baseUrl = 'http://ec2-3-37-12-137.ap-northeast-2.compute.amazonaws.com:8000'; const axiosInstance = axios.create(); diff --git a/app/components/CreatorRanking.module.scss b/app/components/CreatorRanking.module.scss index e3f0b30..e821fe9 100644 --- a/app/components/CreatorRanking.module.scss +++ b/app/components/CreatorRanking.module.scss @@ -26,6 +26,7 @@ } .rankingList { + width: 100%; display: flex; flex-direction: column; margin-top: 24px; diff --git a/app/page.module.scss b/app/page.module.scss index 894cacf..aa6e1e4 100644 --- a/app/page.module.scss +++ b/app/page.module.scss @@ -1,6 +1,7 @@ .container { + width: 100%; padding-left: 0px; - padding-right: 0px; + padding-right: 40px; } .title { @@ -28,6 +29,7 @@ } .creatorRanking { + width: 100%; margin-top: 24px; padding-left: 48px; padding-right: 48px; @@ -41,7 +43,7 @@ } .showAll { - padding: 16px 6px 0px 6px; + padding: 7px 6px 0px 6px; color: #536878; font-family: "Pretendard"; font-size: 15px; diff --git a/next.config.js b/next.config.js index 68701cc..d088dcd 100644 --- a/next.config.js +++ b/next.config.js @@ -27,6 +27,12 @@ const nextConfig = { port: "8000", pathname: "/**", }, + { + protocol: "http", + hostname: "ec2-3-37-12-137.ap-northeast-2.compute.amazonaws.com", + port: "8000", + pathname: "/**", + }, ], }, };