Skip to content

Commit

Permalink
Merge pull request #27 from sfuosdev/fix-base-path
Browse files Browse the repository at this point in the history
Switch production basepath
  • Loading branch information
TommyOh0428 authored Dec 9, 2024
2 parents d367dda + 5bd0b56 commit 07f67e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Resources from './components/Resources'

function App() {
return (
<Router basename="/Website">
<Router>
<div className="min-h-screen flex flex-col">
<Header />
<main className="flex-grow">
Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import react from '@vitejs/plugin-react'

// https://vitejs.dev/config/
export default defineConfig(({ mode }) => {
const base = mode === "production" ? "/Website/" : "/";
const base = mode === "production" ? "/" : "/";
return {
base,
plugins: [react()],
Expand Down

0 comments on commit 07f67e4

Please sign in to comment.