Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 7 additions & 1 deletion app/api/campaign.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 확인하기 */
Expand Down
2 changes: 1 addition & 1 deletion app/api/index.ts
Original file line number Diff line number Diff line change
@@ -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();

Expand Down
1 change: 1 addition & 0 deletions app/components/CreatorRanking.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
}

.rankingList {
width: 100%;
display: flex;
flex-direction: column;
margin-top: 24px;
Expand Down
6 changes: 4 additions & 2 deletions app/page.module.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.container {
width: 100%;
padding-left: 0px;
padding-right: 0px;
padding-right: 40px;
}

.title {
Expand Down Expand Up @@ -28,6 +29,7 @@
}

.creatorRanking {
width: 100%;
margin-top: 24px;
padding-left: 48px;
padding-right: 48px;
Expand All @@ -41,7 +43,7 @@
}

.showAll {
padding: 16px 6px 0px 6px;
padding: 7px 6px 0px 6px;
color: #536878;
font-family: "Pretendard";
font-size: 15px;
Expand Down
6 changes: 6 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: "/**",
},
],
},
};
Expand Down