This repository was archived by the owner on Aug 17, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed
Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 55 font-size : 1rem ;
66 z-index : 10 ;
77 margin-top : 10em ;
8+ padding-bottom : 1em ;
89}
910
1011.footer__bottom {
Original file line number Diff line number Diff line change 11import { StrictMode } from 'react'
22import { createRoot } from 'react-dom/client'
33import './index.css'
4- import { BrowserRouter , Route , Routes } from 'react-router'
4+ import { HashRouter , Route , Routes } from 'react-router'
55import { Layout } from './Layout.tsx'
66import Home from './routes/Home/Home.tsx'
77
88createRoot ( document . getElementById ( 'root' ) ! ) . render (
99 < StrictMode >
10- < BrowserRouter basename = { import . meta. env . BASE_URL } >
10+ < HashRouter basename = { import . meta. env . DEV ? '/' : '/boardify' } >
1111 < Routes >
1212 < Route path = "/" element = { < Layout /> } >
1313 < Route index element = { < Home /> } />
1414 </ Route >
1515 </ Routes >
16- </ BrowserRouter >
16+ </ HashRouter >
1717 </ StrictMode > ,
1818)
Original file line number Diff line number Diff line change @@ -2,7 +2,8 @@ import { defineConfig } from 'vite'
22import react from '@vitejs/plugin-react'
33import path from 'path'
44
5- export default defineConfig ( {
5+ export default defineConfig ( ( { command } ) => ( {
6+ base : command === 'build' ? '/boardify/' : '/' ,
67 plugins : [ react ( ) ] ,
78 resolve : {
89 alias : {
@@ -12,5 +13,4 @@ export default defineConfig({
1213 '@assets' : path . resolve ( __dirname , './src/assets' ) ,
1314 } ,
1415 } ,
15- base : "https://bluepixeldev.github.io/boardify"
16- } )
16+ } ) )
You can’t perform that action at this time.
0 commit comments