Comments (3)
@Owisky There is no discrimination here, The logic you see here is used to auto separate users that use AWS and Tencent Provider, and for users from China Tencent is the default provider.
We decide to make Tencent as the default provider in China as we cooperate with Tencent closely to provide the best experience for most users from China, and user may easily switch back to AWS if they wish by set SERVERLESS_PLATFORM_VENDOR
to aws
or SLS_GEO_LOCATION
to anywhere else than cn
.
We need to know if a user is from China, then we will show CLI context in Chinese to make it easier for users from China use the CLI and understand help info we want to tell users.
Technically, we have have different architecture on AWS and Tencent, as the infrastructure is different, so we have different CLI (Framework CLI and Component CLI) to help user using serverless, to make user has the best experience, we nested the components CLI in the Framework CLI , they all will be triggered by commands serverless
or sls
, with geo location info we can easily find the correct CLI for all Serverless users.
We worked a lot to improve the experience of users from China, not only the Chinese content, but also the user scenarios that China users preferred (eg: easy deploy WEB framework app to serverless, like Express, Flask, ThinkPHP).
Hope this give you a clear idea why we check geo location and vendor info in our code, please let me know if you have future questions.
from components.
very understood, sorry for the inconsiderate expression.
from components.
No worries, Thx for understanding.
you can find out more what we build Serverless in China here : https://cn.serverless.com
also you can leave any questions in Chinese in our Chinese Discussion Forum : https://github.com/serverless/serverless-tencent/discussions
from components.
Related Issues (20)
- Question: Is there a way to exclude @serverless/platform-client-china package? HOT 3
- Getting strange error: 28s › Serverless › There's a problem with your files and they could not be loaded by this Component. Original error: Response code 403 (Forbidden) HOT 1
- alternative cloudfront domains wiped on each deploy HOT 2
- README "Components List" doesn't link to a list of serverless-components
- How to run a different hook command for each stage?
- serverless remove doesn't work HOT 1
- Dependency analysing doesn't support square brackets in output reference expression
- CLI was failing silently when there is configuration issues
- Is it possible to "serverless dev" but not auto deploy?
- Is this deprecated? HOT 15
- Error when deploy on Bitbucket
- change node version HOT 2
- TypeError: Cannot read property 'ping' of null HOT 1
- Setting custom parameters for a component in serverless.yml HOT 1
- Move @serverless/platform-client-china to peerDependency HOT 2
- [feat] devOps friendly output format (JSON, YAML) HOT 6
- TLS connection error in proxy mode network
- Request timed out after 60 seconds HOT 1
- Can't install serverless-components
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from components.