Skip to content

Commit 251a37e

Browse files
binnodonclaude
andcommitted
Add router base path for GitHub Pages
Configure SolidJS Router with base path in production to correctly match routes when deployed to /gc-solid-ui/. This fixes the landing page not rendering issue. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 744d9f8 commit 251a37e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/app.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ import { SolidBaseRoot } from "@kobalte/solidbase/client"
66
import "~/styles/globals.css"
77

88
export default function App() {
9+
const base = import.meta.env.PROD ? "/gc-solid-ui" : ""
10+
911
return (
10-
<Router root={SolidBaseRoot}>
12+
<Router base={base} root={SolidBaseRoot}>
1113
<FileRoutes />
1214
</Router>
1315
)

0 commit comments

Comments
 (0)