feat: add HTTP and WebSocket development proxy
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import { defineConfig } from '@fretuks/iceberg';
|
||||
|
||||
export default defineConfig({
|
||||
server: {
|
||||
port: 3000,
|
||||
proxy: {
|
||||
'/api': 'http://localhost:3001',
|
||||
'/socket': { target: 'http://localhost:3001', ws: true }
|
||||
}
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user