- v1 vanilla JS frontend moved to /classic (static/classic/) - v2 React app now serves at / (root) - Vite base changed from /v2/ to / - Assets at /assets/, service worker at /sw.js - /classic still works — all v1 files preserved with relative paths - /v2 still works as before (build output unchanged) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
14 lines
355 B
TypeScript
14 lines
355 B
TypeScript
import { StrictMode } from 'react';
|
|
import { createRoot } from 'react-dom/client';
|
|
import App from './App';
|
|
|
|
createRoot(document.getElementById('root')!).render(
|
|
<StrictMode>
|
|
<App />
|
|
</StrictMode>,
|
|
);
|
|
|
|
// Register service worker for asset caching
|
|
if ('serviceWorker' in navigator) {
|
|
navigator.serviceWorker.register('/sw.js').catch(() => {});
|
|
}
|