Files
shelfmark/src/frontend/vite.config.ts
T
Alex 3be99effe4 Base url additions and bug fixes (#519)
- Base URL option in settings for reverse proxy setups
- Fix NZB downloads not deleting on completion
- Fix handling for audiobook files over 100+ parts
- Fix prowlarr search timeout 
- Fix prowlarr categorisation for expanded searches
2026-01-23 13:03:02 +00:00

34 lines
788 B
TypeScript

import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import path from 'path';
export default defineConfig(({ command }) => ({
base: command === 'build' ? './' : '/',
plugins: [react()],
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
},
},
server: {
port: 5173,
host: '0.0.0.0',
strictPort: true,
cors: true,
proxy: {
// Proxy API requests to the Docker backend
'/api': {
target: 'http://localhost:8084',
changeOrigin: true,
secure: false,
},
// Note: Socket.IO connects directly to backend (port 8084) in dev mode
// to avoid Vite WebSocket proxy issues. No proxy needed here.
},
},
build: {
outDir: 'dist',
sourcemap: true,
},
}));