Skip to content

Commit

Permalink
url 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
Chaeyeon1 committed Jan 3, 2024
1 parent ef61874 commit 8fd62cb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 2 additions & 6 deletions client/src/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@ const unAxiosApi = (url: string, data?: any) => {
return instance;
};

export const defaultInstance = axiosApi(
'http://glogglogglog-env.eba-fuksumx7.ap-northeast-2.elasticbeanstalk.com',
);
export const defaultInstance = axiosApi('http://3.35.24.11:8080');

export const unAxiosDefaultInstance = unAxiosApi(
'http://glogglogglog-env.eba-fuksumx7.ap-northeast-2.elasticbeanstalk.com',
);
export const unAxiosDefaultInstance = unAxiosApi('http://3.35.24.11:8080');
6 changes: 4 additions & 2 deletions client/src/app/[blogName]/home/[categoryId]/[postId]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,18 @@ const getData = async (id: number) => {
export const generateMetadata = async ({
params,
}: {
params: { id: string };
params: { postId: string };
}): Promise<Metadata> => {
const data = await getData(Number(params.id));
const data = await getData(Number(params.postId));

return {
title: data.title,
description: data.content,
openGraph: {
title: data.title,
description: data.content,
images:
'https://elasticbeanstalk-us-east-1-064991853848.s3.amazonaws.com/profile/defaultImages.jpg',
},
};
};
Expand Down
2 changes: 2 additions & 0 deletions client/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ export const metadata: Metadata = {
title: 'GLOG',
description:
'개발자들을 위해 만들어진 블로그를 작성해보세요! 발자국 시스템, PR 시스템으로 블로그를 꾸준히 쓸 수 있도록 도와줍니다',
images:
'https://elasticbeanstalk-us-east-1-064991853848.s3.amazonaws.com/profile/defaultImages.jpg',
},
icons: [{ rel: 'icon', url: Favicon.src }],
};
Expand Down

0 comments on commit 8fd62cb

Please sign in to comment.