|
@@ -20,7 +20,7 @@ export default ({ mode }: ConfigEnv): UserConfig => {
|
|
|
port: 3000,
|
|
|
proxy: {
|
|
|
'/api': {
|
|
|
- target: 'http://49.232.26.44:8112/',
|
|
|
+ target: env.VITE_APP_API_HTTP_URL,
|
|
|
rewrite: path => path.replace(new RegExp(`^${env.VITE_APP_API_BASE_URL}`), ''),
|
|
|
bypass(req, res, options: any) {
|
|
|
const realUrl = options.target + (options.rewrite ? options.rewrite(req.url) : '')
|