diff --git a/package.json b/package.json index 85f5242..25933f1 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,7 @@ "name": "bet-keeper", "version": "0.1.0", "private": true, + "homepage": "https://radek2s.github.io/BetKeeper", "dependencies": { "@fluentui/font-icons-mdl2": "^8.5.5", "@fluentui/react": "^8.101.0", @@ -39,7 +40,7 @@ "scripts": { "start": "react-scripts start", "start:vite": "vite", - "build": "CI=false && react-scripts build", + "build": "react-scripts build", "build:vite": "tsc && vite build", "preview:vite": "vite preview", "test": "react-scripts test --transformIgnorePatterns \"node_modules/(?!axios)/\"", diff --git a/src/routes.tsx b/src/routes.tsx index a1f3fa7..7628717 100644 --- a/src/routes.tsx +++ b/src/routes.tsx @@ -1,12 +1,11 @@ -import path from 'node:path/win32' import React from 'react' -import { createBrowserRouter, Navigate } from 'react-router-dom' +import { createHashRouter, Navigate } from 'react-router-dom' import App from './App' import BetArchive from './views/BetArchiveList' import BetPage from './views/BetListPage' import SettingsPage from './views/Settings' -const router = createBrowserRouter([ +const router = createHashRouter([ { path: '/', element: ,