Commit 9d52b304 authored by cizek's avatar cizek
Browse files

fixing path

parent eb509e3f
......@@ -32,8 +32,8 @@
"lint:fix": "eslint --fix 'src/**/*.{js,jsx,ts,tsx,json}'",
"format": "prettier --write 'src/**/*.{js,jsx,ts,tsx,css,md,html,json}' --config ./.prettierrc",
"start": "react-scripts start",
"build": "PUBLIC_URL=/pa165 react-scripts build",
"build:copy": "PUBLIC_URL=/pa165 react-scripts build && cp -r build/. ../backend/flea-market-manager-controller/src/main/resources/static",
"build": "react-scripts build",
"build:copy": "react-scripts build && cp -r build/. ../backend/flea-market-manager-controller/src/main/resources/static",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
......
......@@ -13,7 +13,9 @@ axios.defaults.withCredentials = true;
export const App = () => {
return (
<BrowserRouter basename={process.env.PUBLIC_URL}>
<BrowserRouter
basename={process.env.NODE_ENV === "development" ? undefined : "/pa165"}
>
<MantineProvider>
<QueryClientProvider client={queryClient}>
<NotificationProvider>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment