Skip to content

Commit

Permalink
deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Musa-Azeem committed Feb 24, 2024
1 parent 9e18ed3 commit 8a152fd
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
7 changes: 4 additions & 3 deletions frontend/app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions frontend/app/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "app",
"homepage": "https://sccapstone.github.io/K3MS/",
"version": "0.1.0",
"private": true,
"engines": {
Expand All @@ -25,7 +26,9 @@
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"heroku-postbuild": "npm run build"
"heroku-postbuild": "npm run build",
"predeploy": "npm run build",
"deploy": "gh-pages -d build"
},
"eslintConfig": {
"extends": [
Expand All @@ -46,7 +49,7 @@
]
},
"devDependencies": {
"gh-pages": "^6.1.0",
"gh-pages": "^6.1.1",
"webpack-cli": "^5.1.4"
}
}
6 changes: 3 additions & 3 deletions frontend/app/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import GrantUpload from './pages/GrantUpload/GrantUpload';
import EvalUpload from './pages/EvalUpload/EvalUpload';
import AccountSettings from './pages/AccountSettings/AccountSettings';
import UserAdmin from './pages/UserAdmin/UserAdmin';
import { BrowserRouter, Route, Routes } from 'react-router-dom';
import { HashRouter, Route, Routes } from 'react-router-dom';
import { useAuthContext } from './hooks/useAuthContext';
import './pages/main_pages.css'
import PubUpload from './pages/PubUpload/PubUpload';
Expand All @@ -37,7 +37,7 @@ function App() {

return (
checkedStorage ?
<BrowserRouter>
<HashRouter>
<Routes>
<Route path="/" element={ defaultPage } />
<Route path="/login" element={ <Login /> } />
Expand All @@ -54,7 +54,7 @@ function App() {
<Route path="/useradmin" element={ getMainLayoutPage(<UserAdmin />) } />
<Route path="*" element={ defaultPage } />
</Routes>
</BrowserRouter>
</HashRouter>
: <p>Loading...</p>
);
}
Expand Down

0 comments on commit 8a152fd

Please sign in to comment.