Skip to content

Commit da233e1

Browse files
committed
Update public url
1 parent 75d0eaf commit da233e1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/publicUrl.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
export function publicUrl() {
22
if (process.env.NEXT_PUBLIC_VERCEL_ENV === "production") {
33
return `https://frontmatter.codes`;
4+
} else if (process.env.NEXT_PUBLIC_VERCEL_ENV === "preview") {
5+
return `https://beta.frontmatter.codes`;
46
} else {
5-
return `https://${process.env.NEXT_PUBLIC_VERCEL_URL}`;
7+
return `http://localhost:3000`;
68
}
79
}

0 commit comments

Comments
 (0)