Skip to content

Commit

Permalink
Make imports relative to current file
Browse files Browse the repository at this point in the history
This fixes breakage under github pages deployment, since the page gets
deployed under srithon.github.io/kmonadx-playground, and our app
was including paths like /assets/...
  • Loading branch information
srithon committed Jan 9, 2025
1 parent 1d0e386 commit 29b981a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ import tsconfigPaths from 'vite-tsconfig-paths'

// https://vitejs.dev/config/
export default defineConfig({
// this makes all imports relative to the current file, so we don't have to
// worry about the app being deployed under a nested public path
base: "",
plugins: [
react(),
wasm(),
Expand Down

0 comments on commit 29b981a

Please sign in to comment.