OpChan/app/src/main.tsx

22 lines
641 B
TypeScript
Raw Normal View History

2025-08-30 18:34:50 +05:30
import { createRoot } from 'react-dom/client';
import App from './App.tsx';
import './index.css';
2025-09-18 10:15:06 +05:30
import { Buffer } from 'buffer';
2025-09-18 11:08:42 +05:30
import { environment } from '@opchan/core';
// Configure the core library environment
environment.configure({
isDevelopment: import.meta.env.DEV,
isProduction: import.meta.env.PROD,
apiKeys: {
ordiscan: import.meta.env.VITE_ORDISCAN_API,
},
});
2025-09-18 10:15:06 +05:30
// Ensure Buffer is available in the browser (needed by some wallet libs)
if (!(window as Window & typeof globalThis).Buffer) {
(window as Window & typeof globalThis).Buffer = Buffer;
}
2025-04-15 16:28:03 +05:30
2025-08-30 18:34:50 +05:30
createRoot(document.getElementById('root')!).render(<App />);