An open-source, faster Devin alternative
TypeScript
web: read OC_API_TARGET for the dev proxy
Igor Zalutskib509846d548d
diff --git a/web/vite.config.ts b/web/vite.config.tsindex 910705a7..fef64867 100644--- a/web/vite.config.ts+++ b/web/vite.config.ts@@ -1,18 +1,17 @@import { defineConfig } from 'vite'import react from '@vitejs/plugin-react'+const target = process.env.OC_API_TARGET || 'http://localhost:8080'+export default defineConfig({plugins: [react()],base: '/',server: {port: 3000,proxy: {- '/auth': 'http://localhost:8080',- '/api': {- target: 'http://localhost:8080',- ws: true,- },- '/webhooks': 'http://localhost:8080',+ '/auth': target,+ '/api': { target, ws: true },+ '/webhooks': target,},},})