Skip to content

Commit

Permalink
refactor: consolidate Vite configs into single file
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Jan 30, 2025
1 parent 6bfa10f commit eee7607
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 17 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"dev": "vite",
"typecheck": "tsc -p tsconfig.app.json --noEmit",
"typecheck:watch": "tsc -p tsconfig.app.json --noEmit --watch",
"build": "tsc -p tsconfig.app.json --noEmit && vite build --config vite.config.prod.ts",
"build": "tsc -p tsconfig.app.json --noEmit && vite build",
"build:dev": "tsc -p tsconfig.app.json --noEmit && vite build --mode development",
"lint": "eslint . && tsc -p tsconfig.app.json --noEmit",
"preview": "vite preview",
Expand Down
14 changes: 0 additions & 14 deletions vite.config.prod.ts

This file was deleted.

5 changes: 3 additions & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ import { componentTagger } from "lovable-tagger";

// https://vitejs.dev/config/
export default defineConfig(({ mode }) => ({
server: {
//base: '/gptme-webui/', // Add base URL for GitHub Pages (when served under user/org, not as its own subdomain)
server: mode === 'development' ? {
host: "::",
port: 8080,
},
} : undefined,
plugins: [
react(),
mode === 'development' && componentTagger(),
Expand Down

0 comments on commit eee7607

Please sign in to comment.