0
Fork 0
mirror of https://github.com/penpot/penpot-exporter-figma-plugin.git synced 2024-12-22 13:43:03 -05:00
penpot-exporter-figma-plugin/ui-src/main.tsx
Alex Sánchez 8fcc712ad1
fixes
2024-10-17 15:11:05 +02:00

46 lines
1.2 KiB
TypeScript

import { BrowserAgent } from '@newrelic/browser-agent/loaders/browser-agent';
import 'node_modules/@create-figma-plugin/ui/lib/css/base.css';
import { StrictMode } from 'react';
import { createRoot } from 'react-dom/client';
import { App } from './App';
import './main.css';
import './reset.css';
const options = {
init: {
distributed_tracing: { enabled: false },
privacy: { cookies_enabled: false },
ajax: { deny_list: ['bam.eu01.nr-data.net'] }
},
loader_config: {
accountID: import.meta.env.VITE_ACCOUNT_ID,
trustKey: import.meta.env.VITE_TRUST_KEY,
agentID: import.meta.env.VITE_AGENT_ID,
licenseKey: import.meta.env.VITE_LICENSE_KEY,
applicationID: import.meta.env.VITE_APPLICATION_ID
},
info: {
beacon: 'bam.eu01.nr-data.net',
errorBeacon: 'bam.eu01.nr-data.net',
licenseKey: import.meta.env.VITE_LICENSE_KEY,
applicationID: import.meta.env.VITE_APPLICATION_ID,
sa: 1
}
};
new BrowserAgent(options);
declare global {
interface Window {
newrelic: BrowserAgent;
}
}
window.newrelic.addPageAction('plugin-loaded');
createRoot(document.getElementById('root') as HTMLElement).render(
<StrictMode>
<App />
</StrictMode>
);