mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
Set apiGateway variable default to an empty object
This commit is contained in:
parent
76605ffc4b
commit
8a28024192
@ -5,7 +5,7 @@ const BbPromise = require('bluebird');
|
||||
|
||||
module.exports = {
|
||||
compileRestApi() {
|
||||
const apiGateway = this.serverless.service.provider.apiGateway;
|
||||
const apiGateway = this.serverless.service.provider.apiGateway || {};
|
||||
|
||||
// immediately return if we're using an external REST API id
|
||||
if (apiGateway && apiGateway.restApiId) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user