mirror of
https://github.com/icereed/paperless-gpt.git
synced 2025-03-12 21:08:00 -05:00
16 lines
437 B
TypeScript
16 lines
437 B
TypeScript
|
import react from '@vitejs/plugin-react-swc';
|
||
|
import { defineConfig } from 'vite';
|
||
|
|
||
|
export default defineConfig({
|
||
|
plugins: [react()],
|
||
|
server: {
|
||
|
proxy: {
|
||
|
'/api': {
|
||
|
target: 'http://localhost:8080', // Ihr Go-Webservice
|
||
|
changeOrigin: true,
|
||
|
// rewrite: (path) => path.replace(/^\/api/, ''), // Entfernen Sie '/api' aus dem Pfad
|
||
|
},
|
||
|
},
|
||
|
},
|
||
|
});
|