Skip to content

Commit fdafd76

Browse files
committed
Fix Vite base path to / for custom domain deployment
1 parent 6056812 commit fdafd76

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

web/vite.config.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
import { defineConfig } from 'vite'
22
import react from '@vitejs/plugin-react'
33

4-
const isStatic = process.env.VITE_STATIC === 'true'
5-
64
export default defineConfig({
75
plugins: [react()],
8-
// When building for GitHub Pages the app lives at /<repo-name>/
9-
base: isStatic ? '/Knights-And_Knaves_Solver/' : '/',
6+
// Custom domain (kkas.bram-hub.com) serves from root — no subpath needed
7+
base: '/',
108
server: {
119
proxy: {
1210
'/api': 'http://localhost:8000',

0 commit comments

Comments
 (0)