File tree Expand file tree Collapse file tree 3 files changed +27
-23
lines changed Expand file tree Collapse file tree 3 files changed +27
-23
lines changed Original file line number Diff line number Diff line change 1+ onixbyte.dev
Original file line number Diff line number Diff line change @@ -9,28 +9,31 @@ import ContactPage from "@/page/contact"
99 * Main application router configuration using React Router v6.
1010 * Defines all routes and their corresponding components.
1111 */
12- const router = createBrowserRouter ( [
12+ const router = createBrowserRouter (
13+ [
14+ {
15+ path : "/" ,
16+ element : < App /> ,
17+ errorElement : < ErrorPage /> ,
18+ children : [
19+ {
20+ index : true ,
21+ element : < HomePage /> ,
22+ } ,
23+ {
24+ path : "about" ,
25+ element : < AboutPage /> ,
26+ } ,
27+ {
28+ path : "contact" ,
29+ element : < ContactPage /> ,
30+ } ,
31+ ] ,
32+ } ,
33+ ] ,
1334 {
14- path : "/" ,
15- element : < App /> ,
16- errorElement : < ErrorPage /> ,
17- children : [
18- {
19- index : true ,
20- element : < HomePage /> ,
21- } ,
22- {
23- path : "about" ,
24- element : < AboutPage /> ,
25- } ,
26- {
27- path : "contact" ,
28- element : < ContactPage /> ,
29- } ,
30- ] ,
31- } ,
32- ] , {
33- basename : process . env . NODE_ENV === 'production' ? '/react-template' : '/'
34- } )
35+ basename : "/" ,
36+ }
37+ )
3538
3639export default router
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import tailwindcss from "@tailwindcss/vite"
66// https://vite.dev/config/
77export default defineConfig ( {
88 plugins : [ react ( ) , tailwindcss ( ) ] ,
9- base : process . env . NODE_ENV === 'production' ? '/react-template/' : '/' ,
9+ base : "/" ,
1010 resolve : {
1111 alias : {
1212 "@" : fileURLToPath ( new URL ( "./src" , import . meta. url ) ) ,
You can’t perform that action at this time.
0 commit comments