mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-18 09:20:15 +01:00
33 lines
634 B
TypeScript
33 lines
634 B
TypeScript
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
import path from 'path';
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
server: {
|
|
host: 'localhost',
|
|
port: 3090,
|
|
strictPort: false,
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://localhost:3080',
|
|
changeOrigin: true
|
|
},
|
|
'/auth': {
|
|
target: 'http://localhost:3080',
|
|
changeOrigin: true
|
|
}
|
|
}
|
|
},
|
|
plugins: [react()],
|
|
publicDir: './public',
|
|
build: {
|
|
sourcemap: true,
|
|
outDir: './dist'
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
'~': path.join(__dirname, 'src/')
|
|
}
|
|
}
|
|
});
|