Skip to main content

Environment-related

How to Create a CloudBase Environment?

Please refer to the documentation Activating Cloud Development Services.

Can multiple resource environments be created?

A resource environment is the collection of resources you use in the process of developing Mini Programs, including databases, file storage, etc. The resources of each environment are independent and mutually isolated. You can create multiple environments based on your needs for various scenarios such as development, testing, and production. If you have multiple applications corresponding to different business data, you also need to create multiple environments. Currently, on the WeChat side (WeChat Developer Tools), you can create two free environments; on the Tencent Cloud side, you can create one free environment.

Can different clients use the same resource environment?

Environments created on the WeChat side support development for both Mini Program and Web clients, while environments created on the Tencent Cloud side currently only support Web client development.

What to do when the environment's API call count reaches its limit?

To ensure the efficient use of resources, CloudBase imposes limits on the number of API calls for each environment. The call count for each environment is calculated independently and tracked on a daily basis.

  • When the daily API call count exceeds 80% and 90% of the limit, notifications will be sent through various channels such as WeChat, SMS, internal messages, email, etc. If you're developing a Mini Program and the alert is triggered by the WeChat side, notifications will be sent via WeChat; otherwise, via Tencent Cloud. You can upgrade your environment version to enjoy more API calls and avoid impacts on your business operations.
  • If the daily API call count is exhausted, calling the API will report an error indicating "call count has reached the limit". When the call count resets the next day, it will return to normal.

The concept of the CloudBase environment, how to switch between different environments, and how data is synchronized

Switching between different environments in the SDK only requires passing the corresponding env parameter during initialization. Cloud functions and file storage can utilize CLI tools to simplify cross-environment data replication. The database currently still requires exporting from the console and then importing into the target environment.

What is the relationship between CloudBase on the Mini Program side and on the Tencent Cloud side?

Both are supported by Tencent Cloud's cloud services, with the following current differences: Environments created on the Mini Program side can be accessed from both sides (except for cloud function management); environments created on the Tencent Cloud side can only be accessed from the Tencent Cloud side.

Can CloudBase be managed without using the CloudBase Console?

Using the CLI tool provided by CloudBase to manage CloudBase resources