Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
raad1masum committed Oct 27, 2024
1 parent 9738e61 commit 41912ea
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"homepage": "https://formula-electric-berkeley.github.io/inventory/",
"scripts": {
"dev": "vite",
"build": "vite build",
"build": "vite build --base=/",
"lint": "eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview",
"predeploy": "npm run build",
Expand Down
2 changes: 1 addition & 1 deletion client/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Item from './components/Item';
function App() {
return (
<BrowserRouter>
<Routes basename="/inventory">
<Routes basename={import.meta.env.BASE_URL}>
<Route path="/" element={<Landing />} />
<Route path="/item/:itemId" element={<Item />} />
</Routes>
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/Table.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const Table = () => {
formdata.append("digikey_part_number", newDigikeyPN);
formdata.append("mouser_part_number", newMouserPN);
formdata.append("jlcpcb_part_number", newJlcpcbPN);
formdata.append("api_key", "32596ec571459d45a79907daabe8c63edb866227fbf93de6fbe8f0f9e50b9e29");
formdata.append("api_key", "636e0c5c873afcef9a6fa5996edc9c8da49891b7b1ffbdb1720221ccf1e0e184");

const requestOptions = {
method: "POST",
Expand Down
2 changes: 1 addition & 1 deletion client/src/main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import App from './App.jsx'
import './index.css'

window.env = {
REACT_APP_API_URL: 'http://127.0.0.1:8000',
REACT_APP_API_URL: 'http://64.181.228.137:8000',
};

ReactDOM.createRoot(document.getElementById('root')).render(
Expand Down

0 comments on commit 41912ea

Please sign in to comment.