Skip to content

Commit 413d075

Browse files
committed
fixing base route
1 parent e0dab18 commit 413d075

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

src/main.tsx

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
import React from 'react'
2-
import ReactDOM from 'react-dom/client'
3-
import App from './App.tsx'
4-
import './index.css'
5-
import { HashRouter } from 'react-router-dom'
1+
// main.tsx
2+
import React from 'react';
3+
import ReactDOM from 'react-dom/client';
4+
import App from './App';
5+
import './index.css';
6+
import { HashRouter } from 'react-router-dom';
7+
68
ReactDOM.createRoot(document.getElementById('root')!).render(
79
<React.StrictMode>
810
<HashRouter>
9-
<App />
11+
<App />
1012
</HashRouter>
1113
</React.StrictMode>,
12-
)
14+
);

vite.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,5 @@ import { defineConfig } from 'vite';
33
import react from '@vitejs/plugin-react';
44

55
export default defineConfig({
6-
base: '/', // Base URL for your project
76
plugins: [react()],
87
});

0 commit comments

Comments
 (0)