serverless-scaleway-functions
Version:
Provider plugin for the Serverless Framework v3.x which adds support for Scaleway Functions.
18 lines (16 loc) • 582 B
JavaScript
module.exports = {
setUpDeployment() {
const { service } = this.provider.serverless;
const { provider } = service;
this.namespaceName = service.service;
this.namespaceVariables = provider.env || {};
this.namespaceSecretVariables = provider.secret || {};
this.runtime = provider.runtime;
const defaultTokenExpirationDate = new Date();
defaultTokenExpirationDate.setFullYear(
defaultTokenExpirationDate.getFullYear() + 1
);
this.tokenExpirationDate =
provider.tokenExpiration || defaultTokenExpirationDate.toISOString();
},
};