We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 210534a commit c433039Copy full SHA for c433039
1 file changed
apps/studio/vite.config.ts
@@ -47,8 +47,21 @@ export default defineConfig({
47
},
48
plugins: [react()],
49
server: {
50
- port: parseInt(process.env.VITE_PORT || '3000'),
+ // Default to 5173 (Vite default) to avoid conflict with ObjectStack API server on 3000.
51
+ // Use VITE_PORT env var to override (e.g. when embedded in CLI via --ui).
52
+ port: parseInt(process.env.VITE_PORT || '5173'),
53
hmr: hmrConfig,
54
+ // Proxy API requests to the ObjectStack server when running standalone
55
+ proxy: {
56
+ '/api': {
57
+ target: 'http://localhost:3000',
58
+ changeOrigin: true,
59
+ },
60
+ '/.well-known': {
61
62
63
64
65
66
optimizeDeps: {
67
include: [
0 commit comments