File tree 7 files changed +17
-13
lines changed
7 files changed +17
-13
lines changed Original file line number Diff line number Diff line change
1
+ chirp.hex.dance
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ cat > dist/404.html << EOL
58
58
<meta charset="utf-8">
59
59
<title>Chirp - Redirecting</title>
60
60
<script>
61
- window.location.href = "/chirp/ ";
61
+ window.location.href = "/";
62
62
</script>
63
63
</head>
64
64
<body>
@@ -76,5 +76,5 @@ if [ $? -ne 0 ]; then
76
76
exit 1
77
77
fi
78
78
79
- echo " Deployment complete! Your site should be available at https://solst-ice.github.io/chirp "
79
+ echo " Deployment complete! Your site should be available at https://chirp.hex.dance "
80
80
echo " Note: It may take a few minutes for GitHub Pages to update."
Original file line number Diff line number Diff line change 9
9
// Handle GitHub Pages path issues
10
10
( function ( ) {
11
11
const { pathname } = window . location ;
12
- if ( pathname . includes ( '/chirp' ) && ! pathname . endsWith ( '/' ) ) {
12
+ // For custom domain, we just need to ensure the path ends with a slash
13
+ if ( pathname !== '/' && ! pathname . endsWith ( '/' ) ) {
13
14
const hasQuery = window . location . search . length > 0 ;
14
15
window . history . replaceState (
15
16
{ } ,
16
17
'' ,
17
- `/chirp /${ hasQuery ? window . location . search : '' } `
18
+ `${ pathname } /${ hasQuery ? window . location . search : '' } `
18
19
) ;
19
20
}
20
21
} ) ( ) ;
Original file line number Diff line number Diff line change 5
5
"type" : " module" ,
6
6
"scripts" : {
7
7
"dev" : " vite" ,
8
- "build" : " tsc --noEmit && vite build --base=/chirp/ " ,
9
- "preview" : " vite preview --base=/chirp/ " ,
8
+ "build" : " tsc --noEmit && vite build" ,
9
+ "preview" : " vite preview" ,
10
10
"predeploy" : " npm run build" ,
11
- "deploy" : " gh-pages -d dist"
11
+ "deploy" : " gh-pages -d dist" ,
12
+ "lint" : " eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0"
12
13
},
13
14
"dependencies" : {
14
15
"react" : " ^18.2.0" ,
22
23
"typescript" : " ^5.0.2" ,
23
24
"vite" : " ^4.4.5"
24
25
},
25
- "homepage" : " https://solst-ice.github.io/chirp "
26
+ "homepage" : " https://chirp.hex.dance "
26
27
}
Original file line number Diff line number Diff line change
1
+ chirp.hex.dance
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { resolve } from 'path'
5
5
// https://vitejs.dev/config/
6
6
export default defineConfig ( {
7
7
plugins : [ react ( ) ] ,
8
- base : '/chirp/ ' ,
8
+ base : '/' ,
9
9
build : {
10
10
outDir : 'dist' ,
11
11
assetsDir : 'assets' ,
Original file line number Diff line number Diff line change 1
1
import { defineConfig } from 'vite'
2
2
import react from '@vitejs/plugin-react'
3
- import path from 'path'
3
+ import { resolve } from 'path'
4
4
5
5
// https://vitejs.dev/config/
6
6
export default defineConfig ( {
7
7
plugins : [ react ( ) ] ,
8
8
resolve : {
9
9
alias : {
10
- '@' : path . resolve ( __dirname , './src' ) ,
10
+ '@' : resolve ( __dirname , './src' ) ,
11
11
} ,
12
12
} ,
13
- base : '/chirp/ ' , // Set base path to repository name for GitHub Pages
13
+ base : '/' , // Updated for custom domain (was '/chirp/' for GitHub Pages)
14
14
// Ensure we're using the correct entry point
15
15
build : {
16
16
rollupOptions : {
17
17
input : {
18
- main : path . resolve ( __dirname , 'index.html' ) ,
18
+ main : resolve ( __dirname , 'index.html' ) ,
19
19
} ,
20
20
} ,
21
21
outDir : 'dist' ,
You can’t perform that action at this time.
0 commit comments