Skip to content

Commit

Permalink
troubleshooting migration 2
Browse files Browse the repository at this point in the history
  • Loading branch information
CreatedByBdr committed Sep 15, 2023
1 parent 525af25 commit 92dfa86
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion workspaces/cms-utils/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ export async function getJSON(
src: string,
context: EventContext<{}, any, Record<string, unknown>>
): Promise<any> {
const res = await fetch("/" + src + ".json");
const res = await fetch(
import.meta.env.VITE_SITE_URL + "/" + src + ".json"
);
return res.json();
}

Expand Down

0 comments on commit 92dfa86

Please sign in to comment.