remove path prefix

This commit is contained in:
sinu
2022-09-26 23:52:31 -07:00
parent b963e3f4c8
commit 4f232f6623
2 changed files with 2 additions and 2 deletions

View File

@@ -8,7 +8,7 @@ import './config'
const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement);
root.render(
<BrowserRouter basename={process.env.PUBLIC_URL}>
<BrowserRouter>
<Routes>
<Route index element={<HomePage />} />
</Routes>

View File

@@ -10,7 +10,7 @@ module.exports = {
mode: "development",
output: {
path: path.resolve(__dirname, "build"),
publicPath: "/landing-page/",
publicPath: "/",
},
resolve: {
extensions: ["*", ".js", ".jsx", ".ts", ".tsx", ".json"],