Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix app url protocol error & update default url #1006

Merged
merged 2 commits into from
Apr 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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