This commit is contained in:
神仙都没用 2025-03-21 23:19:23 +08:00
parent 4ddd359057
commit 7c79a88c18

View File

@ -1,6 +1,6 @@
const proxy = {
'/dev/': {
target: 'http://127.0.0.1:8888',
target: 'http://127.0.0.1:8001',
changeOrigin: true,
rewrite: (path: string) => path.replace(/^\/dev/, '')
},
@ -12,7 +12,7 @@ const proxy = {
}
};
const value = 'prod';
const value = 'dev';
const host = proxy[`/${value}/`]?.target;
export { proxy, host, value };