import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './App';
import './index.css';
import posthog from 'posthog-js';

// ✅ Paste the key directly here. No Vercel needed!
const POSTHOG_KEY = "phc_O70QSQMzruftZcbg4Z3V5wOisaPiCMJ2rcr97nWkjiG";

if (POSTHOG_KEY) {
	posthog.init(POSTHOG_KEY, {
		api_host: 'https://us.i.posthog.com',
		person_profiles: 'identified_only',
	});
}

ReactDOM.createRoot(document.getElementById('root')).render(
	<App />
);