We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a5b8dd5 commit 8eeeca0Copy full SHA for 8eeeca0
src/static/js/utils/api/query.ts
@@ -23,4 +23,4 @@ const fetchFromLocalMarkdown = (path: string) => {
23
24
let baseUrl = process.env.NODE_ENV === "development" ? "http://localhost:3000" : `https://davebitter.com`;
25
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));
+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