Files
picpeak/frontend/vite.config.ts
T
paul 69538b86ea
Test and Lint / backend-test (pull_request) Successful in 1m24s
Test and Lint / frontend-test (pull_request) Successful in 1m59s
continuous-integration/drone/pr Build is passing
Fix mobile overlay and deps per #43
2025-10-29 12:19:43 +01:00

39 lines
839 B
TypeScript

/// <reference types="vitest" />
// @ts-nocheck
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import type { UserConfig as VitestUserConfig } from 'vitest/config'
// https://vite.dev/config/
const config: VitestUserConfig = {
plugins: [react()],
build: {
rollupOptions: {
output: {
manualChunks: {
'react-vendor': ['react', 'react-dom', 'react-router-dom'],
'ui-vendor': ['lucide-react', 'react-toastify'],
},
},
},
sourcemap: true,
},
server: {
port: 5173,
host: true,
proxy: {
'/api': {
target: 'http://localhost:3002',
changeOrigin: true,
},
'/photos': {
target: 'http://localhost:3002',
changeOrigin: true,
},
},
}
}
export default defineConfig(config as any)