- Add base: '/olivas/' to Vite config so assets resolve correctly - Switch Apache DocumentRoot to /var/www/html with Alias for /olivas/ - Fix RewriteBase to /olivas/ for SPA routing Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
17 lines
359 B
TypeScript
17 lines
359 B
TypeScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
import tailwindcss from '@tailwindcss/vite'
|
|
|
|
export default defineConfig({
|
|
base: '/olivas/',
|
|
plugins: [react(), tailwindcss()],
|
|
server: {
|
|
port: 1577,
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://localhost:8000',
|
|
changeOrigin: true,
|
|
},
|
|
},
|
|
},
|
|
})
|