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 75d0eaf commit da233e1Copy full SHA for da233e1
lib/publicUrl.ts
@@ -1,7 +1,9 @@
1
export function publicUrl() {
2
if (process.env.NEXT_PUBLIC_VERCEL_ENV === "production") {
3
return `https://frontmatter.codes`;
4
+ } else if (process.env.NEXT_PUBLIC_VERCEL_ENV === "preview") {
5
+ return `https://beta.frontmatter.codes`;
6
} else {
- return `https://${process.env.NEXT_PUBLIC_VERCEL_URL}`;
7
+ return `http://localhost:3000`;
8
}
9
0 commit comments