Skip to content

Commit 31bcbe3

Browse files
committed
Attempt basename fix
1 parent 8234e79 commit 31bcbe3

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.github/workflows/gh-pages.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ jobs:
4747
run: cd geographical_interlocking/simulator/react && npm ci
4848

4949
- name: Geographical Interlocking
50+
environment:
51+
GH_PAGES: true
5052
run: cd geographical_interlocking && make build
5153

5254
- name: Locking Table Interlocking NPM

geographical_interlocking/simulator/react/react-router.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ export default {
44
// Config options...
55
// Server-side render by default, to enable SPA mode set this to `false`
66
ssr: false,
7+
basename: process.env.GH_PAGES ? "/interlocking/geographical-interlocking/" : "/",
78
} satisfies Config;

0 commit comments

Comments
 (0)