mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
commit
23a8f38bfb
@ -398,8 +398,12 @@ ApiDeployer.prototype._findOrCreateApi = Promise.method(function() {
|
||||
} else {
|
||||
|
||||
// Create REST API
|
||||
|
||||
var apiName = _this._prjJson.name + '-' + _this._stage;
|
||||
apiName = apiName.substr( 0, 1023 ); // keep the name length below the limits
|
||||
|
||||
return _this.ApiClient.createRestApi({
|
||||
name: _this._prjJson.name,
|
||||
name: apiName,
|
||||
description: _this._prjJson.description ? _this._prjJson.description : 'A REST API for a JAWS project.',
|
||||
}).then(function(response) {
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user