From 27f8e67f378228eac390677bcdfc32882cb63c24 Mon Sep 17 00:00:00 2001 From: Syahsing <50352905+Syahsing@users.noreply.github.com> Date: Mon, 6 Feb 2023 14:04:11 +0800 Subject: [PATCH] Unbund api server from specified one MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix an issue "动态替换容器的实际后端请求地址" at https://www.yuque.com/powerjob/guidence/bdvp1u#fqjlF --- .env.product | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.env.product b/.env.product index 93b89ad..8122e6c 100644 --- a/.env.product +++ b/.env.product @@ -1,2 +1,6 @@ NODE_ENV = 'product' -VUE_APP_BASE_URL = "http://remotehost:7700" + +# When powerjob-server host name is same with powerjob-console web host name, +# VUE_APP_BASE_URL can be simpily as "/api", request to /api should be redirected to powerjob-server(http://remotehost:7700) +# otherwise it can be directly set as "http://remotehost:7700" +VUE_APP_BASE_URL = "/api"