diff --git a/cli/src/action/application/index.ts b/cli/src/action/application/index.ts index 78a1f7a0b2..6fe5d0a7e3 100644 --- a/cli/src/action/application/index.ts +++ b/cli/src/action/application/index.ts @@ -79,10 +79,10 @@ export async function init(appid: string, options: { sync: boolean, basicMode: b developTokenExpire: timestamp + DEBUG_TOKEN_EXPIRE, }, storage: { - endpoint: app.storage.credentials.endpoint, + endpoint: app.storage.endpoint, accessKeyId: app.storage.accessKey, accessKeySecret: app.storage.secretKey, - sessionToken: app.storage.credentials.sessionToken, + sessionToken: app.storage.sessionToken, expire: timestamp + STORAGE_TOKEN_EXPIRE, }, }