Fix API_BASE definition in DiscordActivityContext.tsx

cgen-21330814c81248ce9920ae7b7fd93b6b
This commit is contained in:
Builder.io 2025-11-13 03:00:32 +00:00
parent 10e9411d36
commit 9dc954c273
2 changed files with 2 additions and 2 deletions

View file

@ -12,7 +12,7 @@ import { supabase } from "@/lib/supabase";
import { UserProfile } from "@/lib/database.types";
import { aethexToast } from "@/lib/aethex-toast";
const API_BASE = (globalThis as any).import?.meta?.env?.VITE_API_BASE || "";
const API_BASE = import.meta.env.VITE_API_BASE || "";
import {
aethexUserService,
aethexRoleService,

View file

@ -1,6 +1,6 @@
import React, { createContext, useContext, useEffect, useState } from "react";
const API_BASE = (globalThis as any).import?.meta?.env?.VITE_API_BASE || "";
const API_BASE = import.meta.env.VITE_API_BASE || "";
interface DiscordUser {
id: string;