mirror of
https://gitee.com/nocobase/nocobase.git
synced 2024-12-03 12:47:44 +08:00
fix: yarn dev --client error
This commit is contained in:
parent
f4a1953980
commit
e596025bd4
@ -97,7 +97,7 @@ module.exports = (cli) => {
|
||||
env: {
|
||||
PORT: clientPort,
|
||||
APP_ROOT: `${APP_PACKAGE_ROOT}/client`,
|
||||
WEBSOCKET_URL: process.env.WEBSOCKET_URL || `ws://localhost:${serverPort}/ws`,
|
||||
WEBSOCKET_URL: process.env.WEBSOCKET_URL || (serverPort ? `ws://localhost:${serverPort}/ws` : undefined),
|
||||
PROXY_TARGET_URL:
|
||||
process.env.PROXY_TARGET_URL || (serverPort ? `http://127.0.0.1:${serverPort}` : undefined),
|
||||
},
|
||||
|
@ -7,7 +7,6 @@ export const getWebSocketURL = () => {
|
||||
}
|
||||
const subApp = getSubAppName();
|
||||
const queryString = subApp ? `?__appName=${subApp}` : '';
|
||||
console.log(queryString);
|
||||
if (process.env.WEBSOCKET_URL) {
|
||||
return `${process.env.WEBSOCKET_URL}${queryString}`;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user