Skip to content

Commit

Permalink
fix: serverless app layer (#1046)
Browse files Browse the repository at this point in the history
  • Loading branch information
echosoar authored May 17, 2021
1 parent 8de99ce commit 0f8dd18
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
8 changes: 1 addition & 7 deletions packages-serverless/serverless-app/src/framework.ts
Original file line number Diff line number Diff line change
Expand Up @@ -354,14 +354,8 @@ export class Framework
});
}

private getLayers() {
protected getLayers() {
const specLayers = [];
if (this.configurationOptions.layers) {
this.configurationOptions.layers.forEach(path => {
const layer = require(path);
specLayers.push(layer);
});
}
if (this.spec?.layers) {
Object.keys(this.spec.layers).forEach(layerName => {
const info = this.spec.layers[layerName];
Expand Down
1 change: 0 additions & 1 deletion packages-serverless/serverless-app/src/interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ export interface Application extends FaaSApplication {
export interface IServerlessAppOptions extends IConfigurationOptions {
port?: string | number;
initContext?: any;
layers?: string[];
}

export interface Context extends FaaSContext {}

0 comments on commit 0f8dd18

Please sign in to comment.