From 7aa391cd999b9d63e97d4c217b054162423b64e5 Mon Sep 17 00:00:00 2001 From: Ratchet7x5 <36789694+Ratchet7x5@users.noreply.github.com> Date: Thu, 12 Dec 2024 14:04:21 +1300 Subject: [PATCH] print env vars in FE --- web/src/main.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/web/src/main.tsx b/web/src/main.tsx index 2242c52..bb419ed 100644 --- a/web/src/main.tsx +++ b/web/src/main.tsx @@ -40,6 +40,13 @@ import AttendanceScreen from "./screens/AttendanceScreen.tsx"; import EventAttendanceSelectScreen from "./screens/EventAttendanceSelectScreen.tsx"; import { ExecRoute } from "@utils/AdminRouteProtection.tsx"; +console.log(`Backend env vars : + VITE_API_URL=${import.meta.env.VITE_API_URL} + VITE_STRAPI_URL=${import.meta.env.VITE_STRAPI_URL}, + VITE_APP_URL=${import.meta.env.VITE_APP_URL}, + VITE_APP_NAME=${import.meta.env.VITE_APP_NAME}, + VITE_STRIPE_PUBLISHABLE_KEY=${import.meta.env.VITE_STRIPE_PUBLISHABLE_KEY},`); + //supertokens code SuperTokens.init({ appInfo: {