mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
add environment variable support
This commit is contained in:
parent
c44bba48e0
commit
62ab8e09ea
@ -81,6 +81,10 @@ class Platform {
|
||||
}
|
||||
|
||||
getAuthToken() {
|
||||
if (process.env.SERVERLESS_PLATFORM_AUTH_TOKEN) {
|
||||
return process.env.SERVERLESS_PLATFORM_AUTH_TOKEN;
|
||||
}
|
||||
|
||||
const userConfig = configUtils.getConfig();
|
||||
const currentId = userConfig.userId;
|
||||
const globalConfig = configUtils.getGlobalConfig();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user