Skip to content

Commit 8e6c51a

Browse files
committed
hotfix: 구조분해 관련 오류 해결
1 parent 8547cb3 commit 8e6c51a

File tree

1 file changed

+4
-3
lines changed
  • src/components/auth-required/main/Section

1 file changed

+4
-3
lines changed

src/components/auth-required/main/Section/index.tsx

+4-3
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,17 @@ export const Section = (p: PostType) => {
1515
const client = useQueryClient();
1616

1717
const { username } = client.getQueryData([PATHS.ME]) as UserDto;
18-
const { NEXT_PUBLIC_VELOG_URL } = process.env;
18+
const URL = process.env.NEXT_PUBLIC_VELOG_URL;
1919

2020
if (!username) {
2121
throw new UserNameNotFoundError();
2222
}
23-
if (!NEXT_PUBLIC_VELOG_URL) {
23+
24+
if (!URL) {
2425
throw new EnvNotFoundError('NEXT_PUBLIC_VELOG_URL');
2526
}
2627

27-
const url = `${NEXT_PUBLIC_VELOG_URL}/@${username}/${p.slug}`;
28+
const url = `${URL}/@${username}/${p.slug}`;
2829

2930
return (
3031
<section className="flex flex-col w-full h-fit relative">

0 commit comments

Comments
 (0)