Skip to content

Commit 4a894b2

Browse files
authored
Root location update
1 parent 4ff2bbf commit 4a894b2

3 files changed

Lines changed: 7 additions & 12 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "vf-react",
33
"version": "0.1.0",
44
"private": true,
5-
"homepage": "https://visual-framework.github.io/vf-react/",
5+
"homepage": "/vf-react/",
66
"dependencies": {
77
"@testing-library/jest-dom": "^5.17.0",
88
"@testing-library/react": "^13.4.0",

public/manifest.json

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,14 @@
11
{
2-
"short_name": "React App",
3-
"name": "Create React App Sample",
2+
"short_name": "VF React App",
3+
"name": "Visual Framework React App",
44
"icons": [
55
{
6-
"src": "https://assets.emblstatic.net/vf/v2.4.11/assets/vf-favicon/assets/favicon.ico",
6+
"src": "/vf-react/favicon.ico",
77
"sizes": "64x64 32x32 24x24 16x16",
88
"type": "image/x-icon"
9-
},
10-
{
11-
"src": "https://assets.emblstatic.net/vf/v2.4.11/assets/vf-favicon/assets/android-chrome-192x192.png",
12-
"type": "image/png",
13-
"sizes": "192x192"
14-
}
9+
}
1510
],
16-
"start_url": ".",
11+
"start_url": "/vf-react/",
1712
"display": "standalone",
1813
"theme_color": "#000000",
1914
"background_color": "#ffffff"

src/App.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function RouteChangeHandler({ children }) {
3434
function App() {
3535
// Use HashRouter instead of BrowserRouter for GitHub Pages
3636
return (
37-
<Router>
37+
<Router basename="/vf-react">
3838
<RouteChangeHandler>
3939
<Header />
4040
<Routes>

0 commit comments

Comments
 (0)