forked from cerc-io/snowballtools-base
Replace REACT_APP env with VITE
This commit is contained in:
@@ -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({
|
||||
|
||||
@@ -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}`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user