Replace REACT_APP env with VITE

This commit is contained in:
2024-04-25 16:59:02 +05:30
parent 5f4be30799
commit 8b39f664ad
4 changed files with 17 additions and 17 deletions
@@ -105,7 +105,7 @@ const siweConfig = createSIWEConfig({
});
if (!import.meta.env.VITE_WALLET_CONNECT_ID) {
throw new Error('Error: REACT_APP_WALLET_CONNECT_ID env config is not set');
throw new Error('Error: VITE_WALLET_CONNECT_ID env config is not set');
}
createWeb3Modal({
+1 -1
View File
@@ -20,7 +20,7 @@ const root = ReactDOM.createRoot(
assert(
import.meta.env.VITE_SERVER_URL,
'REACT_APP_SERVER_URL is not set in env',
'VITE_SERVER_URL is not set in env',
);
const gqlEndpoint = `${import.meta.env.VITE_SERVER_URL}/${SERVER_GQL_PATH}`;