mirror of
https://github.com/maxdorninger/MediaManager.git
synced 2026-04-25 10:15:44 +02:00
Improve local dev experience
This commit is contained in:
@@ -4,5 +4,21 @@ import { enhancedImages } from '@sveltejs/enhanced-img';
|
||||
import tailwindcss from '@tailwindcss/vite';
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [tailwindcss(), enhancedImages(), sveltekit()]
|
||||
plugins: [tailwindcss(), enhancedImages(), sveltekit()],
|
||||
server: {
|
||||
host: '0.0.0.0', // Allow external connections (required for Docker)
|
||||
port: 5173,
|
||||
strictPort: true, // Fail if port is already in use
|
||||
watch: {
|
||||
usePolling: true, // Required for file watching in Docker on some systems
|
||||
interval: 100 // Check for changes every 100ms
|
||||
},
|
||||
proxy: {
|
||||
// Proxy API requests to backend container
|
||||
'/api': {
|
||||
target: 'http://mediamanager:8000',
|
||||
changeOrigin: true
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user