From 92dfa86c053b08724bc01da38420de48c6aece84 Mon Sep 17 00:00:00 2001 From: bgharbi Date: Fri, 15 Sep 2023 02:18:24 +0200 Subject: [PATCH] troubleshooting migration 2 --- workspaces/cms-utils/src/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); }