Skip to content

Commit

Permalink
fix: fix app url protocol error & update default url (#1006)
Browse files Browse the repository at this point in the history
* fix: fix app url protocol error

* feat: update default url to laf.run
  • Loading branch information
skyoct authored Apr 6, 2023
1 parent e258a7b commit b79f71e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cli/src/action/application/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export async function init(appid: string, options: { sync: boolean }) {
createdAt: data.createdAt,
}
// generate application invoke address
config.invokeUrl = 'http://' + data.domain.domain
config.invokeUrl = data.tls ? 'https://' + data.domain.domain : 'http://' + data.domain.domain

writeApplicationConfig(config)

Expand Down
2 changes: 1 addition & 1 deletion cli/src/common/constant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const DEBUG_TOKEN_EXPIRE = 3600 * 24 * 7
export const STORAGE_TOKEN_EXPIRE = 3600 * 24 * 7

// remote server config
export const DEFAULT_REMOTE_SERVER = 'https://api.laf.dev'
export const DEFAULT_REMOTE_SERVER = 'https://api.laf.run'

// template file
export const TEMPLATE_DIR = 'template'
Expand Down

0 comments on commit b79f71e

Please sign in to comment.