- Add `server` configuration in `vite.config.ts` - Enable `host: 0.0.0.0` for external access - Setup proxy for `/api`, `/mj`, and `/pg` endpoints targeting `http://localhost:3000`
@@ -19,4 +19,21 @@ export default defineConfig({
'@': path.resolve(__dirname, './src'),
},
+ server: {
+ host: '0.0.0.0',
+ proxy: {
+ '/api': {
+ target: 'http://localhost:3000',
+ changeOrigin: true,
+ },
+ '/mj': {
+ '/pg': {
})