let Moralis;
export function useMoralis() {
  if (Moralis) return { Moralis };
  // Moralis Initialization
  if (typeof window !== `undefined`) {
    Moralis = require('moralis');
    Moralis.initialize('knjJS1n0Hf0vkWjluePnByHQKVgUNdujnbtPbMUD');
    Moralis.serverURL = 'https://memk9nntn6p4.moralis.io:2053/server';
  }
  return { Moralis };
}

let Moralis;
export function useMoralis() {
  if (Moralis) return { Moralis };
  // Moralis Initialization
  if (typeof window !== `undefined`) {
    Moralis = require('moralis');
    Moralis.initialize(process.env.MORALIS_APPLICATION_ID);
    Moralis.serverURL = process.env.MORALIS_SERVER_ID;
  }
  return { Moralis };
}

Switch back to env variables, troubleshoot with Fleek
Switch back to env variables, troubleshoot with Fleek
