//vite. Config. ts server: {port: '3000', open: false, // Automatically open base: ". ", // Production environment path proxy: {// local development environment through the proxy implementation, production environment using nginx forward // regular expression writing '^/ API ': {target: 'http://xxx.xxx.xxx.xxx:9999', / / the back-end service actual address changeOrigin: true, / / open proxy rewrite: (path) => path.replace(/^\/api/, '') } } },Copy the code