diff --git a/src/App.tsx b/src/App.tsx index 01ca02f9..54a35385 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,4 +1,4 @@ -import { HashRouter as Router } from 'react-router-dom'; // Change to HashRouter +import { BrowserRouter as Router } from 'react-router-dom'; import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; import { ErrorBoundary } from './components/ui/ErrorBoundary'; import { Navbar } from './components/layout/Navbar'; @@ -32,4 +32,4 @@ function App() { ); } -export default App; +export default App; \ No newline at end of file diff --git a/src/routes.tsx b/src/routes.tsx index ce779b9c..d7768d14 100644 --- a/src/routes.tsx +++ b/src/routes.tsx @@ -1,4 +1,4 @@ -import { HashRouter as Router, Routes, Route } from 'react-router-dom'; +import { Routes, Route } from 'react-router-dom'; import { Suspense, lazy } from 'react'; import { Loader2 } from 'lucide-react'; @@ -20,18 +20,16 @@ function LoadingSpinner() { export function AppRoutes() { return ( - - }> - - } /> - } /> - } /> - } /> - } /> - } /> - } /> - - - + }> + + } /> + } /> + } /> + } /> + } /> + } /> + } /> + + ); -} +} \ No newline at end of file diff --git a/vite.config.ts b/vite.config.ts index 101ca47c..d702e76a 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -9,7 +9,22 @@ export default defineConfig({ '@': resolve(__dirname, './src'), }, }, + build: { + rollupOptions: { + output: { + // Make sure main.js is generated as part of the build + entryFileNames: 'main.js', + // Output CSS as a separate file (style.css) + assetFileNames: ({ name }) => { + if (name && name.endsWith('.css')) { + return 'style.css'; // Ensure style.css is generated + } + return 'assets/[name]-[hash][extname]'; // Other assets (images, etc.) + }, + }, + }, + }, optimizeDeps: { exclude: ['lucide-react'], }, -}); \ No newline at end of file +});