Skip to content

Commit 671d68a

Browse files
Hari KiranHari Kiran
authored andcommitted
Fix: Zodiac error
1 parent 13d096c commit 671d68a

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/build-deploy-zodiac.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@ jobs:
2121
- name: Install dependencies
2222
run: yarn install --frozen-lockfile
2323

24-
- name: Build React App
25-
run: yarn build
24+
- name: Build React App with Dynamic PUBLIC_URL
25+
run: |
26+
echo "Building for /dev/dev_hari/"
27+
PUBLIC_URL="/dev/dev_hari/" yarn build
2628
2729
- name: Determine Branch Name
2830
id: get_branch

src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { BrowserRouter } from "react-router-dom";
66
const App = () => {
77
return (
88
<ThemeProvider theme={theme}>
9-
<BrowserRouter>
9+
<BrowserRouter basename={process.env.PUBLIC_URL}>
1010
<Routes />
1111
</BrowserRouter>
1212
</ThemeProvider>

0 commit comments

Comments
 (0)