Skip to content

Commit

Permalink
Update BrowserRouter basename and remove unnecessary server and previ…
Browse files Browse the repository at this point in the history
…ew configurations
  • Loading branch information
sarveshh committed Mar 15, 2024
1 parent a97f836 commit 0780619
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { routes } from "./routes";

function App() {
return (
<BrowserRouter>
<BrowserRouter basename="/React-OP-Template">
<Routes>
<Route path={routes.landing} element={<LandingPage />} />
<Route path="*" element={<NotFoundPage />} />
Expand Down
6 changes: 0 additions & 6 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,4 @@ import { defineConfig } from "vite";
export default defineConfig({
base: "/React-OP-Template/",
plugins: [react()],
server: {
port: 3000,
},
preview: {
port: 5000,
},
});

0 comments on commit 0780619

Please sign in to comment.