Serverless Framework will check whether the user is in the Chinese mainland by default during deployment. If your development environment is outside the Chinese mainland and you want to use Serverless Framework in the Chinese mainland edition, you can add the configuration item
SERVERLESS_PLATFORM_VENDOR=tencent in the
.env file to start the Chinese mainland edition by default.
If your deployment environment is configured with a proxy, this problem may occur. Please check whether your development environment is in the Chinese mainland and then add the configuration item
SERVERLESS_PLATFORM_VENDOR=tencent to the
The Serverless Framework deployment engine is currently in the Chinese mainland; therefore, for overseas deployment, file upload may be very slow. You can enable global acceleration by adding the configuration item
GLOBAL_ACCELERATOR_NA=true to the
Add the following configuration to the
HTTP_PROXY=http://127.0.0.1:12345 # Replace "12345" with your proxy port HTTPS_PROXY=http://127.0.0.1:12345 # Replace "12345" with your proxy port
The permission control of Windows PowerShell is very stringent. You need to run the
set-executionpolicy remotesigned command before you can deploy normally. In addition, we recommend you use the
serverless deploy method to deploy in the Windows environment.
Contact our sales team or business advisors to help your business.
Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.
Was this page helpful?