Skip to content

Commit b79f71e

Browse files
authored
fix: fix app url protocol error & update default url (#1006)
* fix: fix app url protocol error * feat: update default url to laf.run
1 parent e258a7b commit b79f71e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cli/src/action/application/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export async function init(appid: string, options: { sync: boolean }) {
5555
createdAt: data.createdAt,
5656
}
5757
// generate application invoke address
58-
config.invokeUrl = 'http://' + data.domain.domain
58+
config.invokeUrl = data.tls ? 'https://' + data.domain.domain : 'http://' + data.domain.domain
5959

6060
writeApplicationConfig(config)
6161

cli/src/common/constant.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export const DEBUG_TOKEN_EXPIRE = 3600 * 24 * 7
2020
export const STORAGE_TOKEN_EXPIRE = 3600 * 24 * 7
2121

2222
// remote server config
23-
export const DEFAULT_REMOTE_SERVER = 'https://api.laf.dev'
23+
export const DEFAULT_REMOTE_SERVER = 'https://api.laf.run'
2424

2525
// template file
2626
export const TEMPLATE_DIR = 'template'

0 commit comments

Comments
 (0)