We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43205c9 commit 8547cb3Copy full SHA for 8547cb3
src/components/auth-required/main/Section/index.tsx
@@ -20,11 +20,11 @@ export const Section = (p: PostType) => {
20
if (!username) {
21
throw new UserNameNotFoundError();
22
}
23
- if (NEXT_PUBLIC_VELOG_URL) {
+ if (!NEXT_PUBLIC_VELOG_URL) {
24
throw new EnvNotFoundError('NEXT_PUBLIC_VELOG_URL');
25
26
27
- const url = `${process.env.NEXT_PUBLIC_VELOG_URL}/@${username}/${p.slug}`;
+ const url = `${NEXT_PUBLIC_VELOG_URL}/@${username}/${p.slug}`;
28
29
return (
30
<section className="flex flex-col w-full h-fit relative">
0 commit comments