Skip to content

Commit

Permalink
Use different base URL during production
Browse files Browse the repository at this point in the history
  • Loading branch information
invpt committed Mar 10, 2024
1 parent bf6c761 commit ddc6801
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import { defineConfig } from 'vite';
import solidPlugin from 'vite-plugin-solid';
// import devtools from 'solid-devtools/vite';

export default defineConfig({
export default defineConfig(({ mode }) => ({
base: mode === "production" ? "/builder/" : "/",
plugins: [
/*
Uncomment the following line to enable solid-devtools.
Expand All @@ -17,4 +18,4 @@ export default defineConfig({
build: {
target: 'esnext',
},
});
}));

0 comments on commit ddc6801

Please sign in to comment.