Initial commit
This commit is contained in:
18
frontend/src/main.tsx
Normal file
18
frontend/src/main.tsx
Normal file
@@ -0,0 +1,18 @@
|
||||
import { StrictMode } from 'react'
|
||||
import { createRoot } from 'react-dom/client'
|
||||
import siteConfig from './config/site.config'
|
||||
import './index.css'
|
||||
import App from './App.tsx'
|
||||
|
||||
// Set initial document title and meta from config
|
||||
document.title = siteConfig.meta.title
|
||||
const metaDescription = document.querySelector('meta[name="description"]')
|
||||
if (metaDescription) {
|
||||
metaDescription.setAttribute('content', siteConfig.meta.description)
|
||||
}
|
||||
|
||||
createRoot(document.getElementById('root')!).render(
|
||||
<StrictMode>
|
||||
<App />
|
||||
</StrictMode>,
|
||||
)
|
||||
Reference in New Issue
Block a user