Skip to content

Commit 8eeeca0

Browse files
author
Dave Bitter
committed
fix(query): Restore OG image functionality
1 parent a5b8dd5 commit 8eeeca0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/static/js/utils/api/query.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ const fetchFromLocalMarkdown = (path: string) => {
2323

2424
let baseUrl = process.env.NODE_ENV === "development" ? "http://localhost:3000" : `https://davebitter.com`;
2525

26-
export default async (path: string) => process.env.CI && path !== '/content/friday-tips' ? fetchFromLocalMarkdown(path) : await fetch(`${baseUrl}/api${path}`).then((res) => res.json()).catch(() => fetchFromLocalMarkdown(path));
26+
export default async (path: string) => path !== '/content/friday-tips' ? fetchFromLocalMarkdown(path) : await fetch(`${baseUrl}/api${path}`).then((res) => res.json()).catch(() => fetchFromLocalMarkdown(path));

0 commit comments

Comments
 (0)