This commit is contained in:
2026-04-04 13:18:36 +05:30
parent 0749060b1f
commit 177cc976b4
2 changed files with 12 additions and 6 deletions

View File

@@ -3,8 +3,14 @@ import { createRoot } from 'react-dom/client';
import { BrowserRouter, Routes, Route } from "react-router-dom";
import Home from './Home';
import Admin from '../react-openapi/Admin';
import { Buffer } from 'buffer';
import process from 'process';
import { AuthProvider } from "../react-auth";
// Polyfill Node.js globals for browser environment (needed by SwaggerParser)
window.Buffer = Buffer;
window.process = process;
const rootElement = document.getElementById('root');
const root = createRoot(rootElement);
const AUTH_BASE = import.meta.env.VITE_AUTH_BASE_URL;