Skip to content

Commit 8547cb3

Browse files
committed
hotfix: env 관련 오류 해결
1 parent 43205c9 commit 8547cb3

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ export const Section = (p: PostType) => {
2020
if (!username) {
2121
throw new UserNameNotFoundError();
2222
}
23-
if (NEXT_PUBLIC_VELOG_URL) {
23+
if (!NEXT_PUBLIC_VELOG_URL) {
2424
throw new EnvNotFoundError('NEXT_PUBLIC_VELOG_URL');
2525
}
2626

27-
const url = `${process.env.NEXT_PUBLIC_VELOG_URL}/@${username}/${p.slug}`;
27+
const url = `${NEXT_PUBLIC_VELOG_URL}/@${username}/${p.slug}`;
2828

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

0 commit comments

Comments
 (0)