Skip to content

Commit

Permalink
hotfix: env 관련 오류 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
six-standard committed Feb 16, 2025
1 parent 43205c9 commit 8547cb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/auth-required/main/Section/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ export const Section = (p: PostType) => {
if (!username) {
throw new UserNameNotFoundError();
}
if (NEXT_PUBLIC_VELOG_URL) {
if (!NEXT_PUBLIC_VELOG_URL) {
throw new EnvNotFoundError('NEXT_PUBLIC_VELOG_URL');
}

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

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

0 comments on commit 8547cb3

Please sign in to comment.