I am trying to capture the variables in my dotenv for the moralis authenticator but it does not work. It is not a problem of the variables because if I put them directly, harcoded, it works. What is the proper way to use them in this component?
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import { MoralisProvider } from "react-moralis";
require('dotenv').config();
const { MORALIS_SERVER_URL, MORALIS_APP_ID } = process.env;
ReactDOM.render(
<MoralisProvider serverUrl={MORALIS_SERVER_URL} appId={MORALIS_APP_ID }>
<App />
</MoralisProvider>,
document.getElementById('root')
);