diff --git a/workspaces/cms-utils/src/index.ts b/workspaces/cms-utils/src/index.ts index bd6b5993b0..c4df07fd63 100644 --- a/workspaces/cms-utils/src/index.ts +++ b/workspaces/cms-utils/src/index.ts @@ -62,7 +62,9 @@ export async function getJSON( src: string, context: EventContext<{}, any, Record> ): Promise { - const res = await fetch("/" + src + ".json"); + const res = await fetch( + import.meta.env.VITE_SITE_URL + "/" + src + ".json" + ); return res.json(); }