mirror of
https://github.com/calibrain/shelfmark.git
synced 2026-11-16 13:48:13 +00:00
- 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
34 lines
788 B
TypeScript
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,
|
|
},
|
|
}));
|