File tree Expand file tree Collapse file tree 5 files changed +28
-2
lines changed Expand file tree Collapse file tree 5 files changed +28
-2
lines changed Original file line number Diff line number Diff line change 46
46
uses : peaceiris/actions-gh-pages@v3
47
47
with :
48
48
github_token : ${{ secrets.GITHUB_TOKEN }}
49
- publish_dir : ./dist
49
+ publish_dir : ./dist
50
+ cname : pyversify.github.io
Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < html >
3
+ < head >
4
+ < meta charset ="utf-8 ">
5
+ < title > PyVersify</ title >
6
+ < script type ="text/javascript ">
7
+ // Single Page Apps for GitHub Pages
8
+ // https://github.com/rafgraph/spa-github-pages
9
+ var pathSegmentsToKeep = 1 ;
10
+
11
+ var l = window . location ;
12
+ l . replace (
13
+ l . protocol + '//' + l . hostname + ( l . port ? ':' + l . port : '' ) +
14
+ l . pathname . split ( '/' ) . slice ( 0 , 1 + pathSegmentsToKeep ) . join ( '/' ) + '/?/' +
15
+ l . pathname . slice ( 1 ) . split ( '/' ) . slice ( pathSegmentsToKeep ) . join ( '/' ) . replace ( / & / g, '~and~' ) +
16
+ ( l . search ? '&' + l . search . slice ( 1 ) . replace ( / & / g, '~and~' ) : '' ) +
17
+ l . hash
18
+ ) ;
19
+ </ script >
20
+ </ head >
21
+ < body >
22
+ </ body >
23
+ </ html >
Original file line number Diff line number Diff line change
1
+ pyversify.github.io
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ function App() {
22
22
} , [ ] ) ;
23
23
24
24
return (
25
- < BrowserRouter >
25
+ < BrowserRouter basename = "/" >
26
26
< div className = "min-h-screen bg-gray-300 flex flex-col" >
27
27
{ /* Header */ }
28
28
< Header fontLoaded = { fontLoaded } smallLogo = { smallLogo } />
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import react from '@vitejs/plugin-react';
4
4
// https://vitejs.dev/config/
5
5
export default defineConfig ( {
6
6
plugins : [ react ( ) ] ,
7
+ base : '/' ,
7
8
optimizeDeps : {
8
9
exclude : [ 'lucide-react' ] ,
9
10
} ,
You can’t perform that action at this time.
0 commit comments