Skip to content

Commit

Permalink
fix vite config
Browse files Browse the repository at this point in the history
  • Loading branch information
spidunno committed May 28, 2024
1 parent 85f0e05 commit 678f0c0
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
import { defineConfig } from 'vite'
import { defineConfig, UserConfig } from 'vite'
import solid from 'vite-plugin-solid'

export default defineConfig({
plugins: [solid()],
})
export default defineConfig(({ mode }) => {
const common: UserConfig = {
plugins: [solid()],
};
if (mode === "gh-pages") {
return { ...common, base: "/sorting-algorithm-visualizer" };
} else {
return common;
}
});

0 comments on commit 678f0c0

Please sign in to comment.