26 lines
696 B
TypeScript
26 lines
696 B
TypeScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
import tailwindcss from '@tailwindcss/vite'
|
|
|
|
export default defineConfig({
|
|
plugins: [react(), tailwindcss()],
|
|
optimizeDeps: {
|
|
exclude: ['pocketbase'], // uses 'import' as method name — breaks esbuild pre-bundle
|
|
},
|
|
server: {
|
|
host: '0.0.0.0',
|
|
proxy: {
|
|
'/pb': {
|
|
target: 'http://127.0.0.1:8091',
|
|
changeOrigin: true,
|
|
rewrite: (path) => path.replace(/^\/pb/, ''),
|
|
},
|
|
'/deepseek': {
|
|
target: 'https://127.0.0.1:3448',
|
|
changeOrigin: true,
|
|
secure: false, // Let's Encrypt cert hostname mismatch on 127.0.0.1
|
|
},
|
|
},
|
|
},
|
|
})
|