From 2dd0ab90c084d80caa99e2f06cfa1a17719421e2 Mon Sep 17 00:00:00 2001 From: Maharshi Mishra Date: Mon, 21 Oct 2024 22:47:08 +0530 Subject: [PATCH] Added Vite env variable --- single-factor-auth-web/sfa-web-ton-telegram-example/src/App.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/single-factor-auth-web/sfa-web-ton-telegram-example/src/App.tsx b/single-factor-auth-web/sfa-web-ton-telegram-example/src/App.tsx index 5e060e03..3e77658d 100644 --- a/single-factor-auth-web/sfa-web-ton-telegram-example/src/App.tsx +++ b/single-factor-auth-web/sfa-web-ton-telegram-example/src/App.tsx @@ -135,7 +135,7 @@ function App() { const getIdTokenFromServer = async (initDataRaw: string) => { const isMocked = !!sessionStorage.getItem("____mocked"); - const response = await fetch(`${process.env.SERVER_URL}/auth/telegram`, { + const response = await fetch(`${import.meta.env.VITE_SERVER_URL}/auth/telegram`, { method: "POST", headers: { "Content-Type": "application/json",