Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnsonMao committed Apr 6, 2024
2 parents 47ef61f + 2f18cff commit 17755b7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import react from "@vitejs/plugin-react";
import svgr from "vite-plugin-svgr";

// https://vitejs.dev/config/
export default defineConfig({
export default defineConfig((config) =>({
base: config.command === 'build' ? '/taiwan_bus' : '/',
plugins: [react(), svgr()],
resolve: {
alias: [
Expand All @@ -13,4 +14,4 @@ export default defineConfig({
},
],
},
});
}));

0 comments on commit 17755b7

Please sign in to comment.