Skip to content

Commit

Permalink
Fix base path
Browse files Browse the repository at this point in the history
  • Loading branch information
ryangoree committed Jan 10, 2024
1 parent 2fea7fa commit 03dc12a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import "./index.css";

ReactDOM.createRoot(document.getElementById("root")!).render(
<React.StrictMode>
<BrowserRouter>
<BrowserRouter basename={import.meta.env.BASE_URL ?? "/"}>
<App />
</BrowserRouter>
</React.StrictMode>,
Expand Down
1 change: 0 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ export default defineConfig(({ mode }) => {
const env = loadEnv(mode, process.cwd(), "");
basePath = env.BASE_PATH;
}
console.log("basePath", basePath);
return {
plugins: [react(), tsconfigPaths()],
envDir: ".",
Expand Down

0 comments on commit 03dc12a

Please sign in to comment.