Skip to content

Commit 8e42dca

Browse files
add default smartui server address
1 parent 0a71e27 commit 8e42dca

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/sdk-utils/src/lib/utils.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
function getSmartUIServerAddress() {
2-
if (!process.env.SMARTUI_SERVER_ADDRESS) throw new Error('SmartUI server address not found');
3-
return process.env.SMARTUI_SERVER_ADDRESS
2+
if (!process.env.SMARTUI_SERVER_ADDRESS) {
3+
return 'http://localhost:49152';
4+
}
5+
return process.env.SMARTUI_SERVER_ADDRESS;
46
}
57

68
module.exports = {

0 commit comments

Comments
 (0)