File tree 5 files changed +7
-5
lines changed
5 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -208,6 +208,8 @@ custom:
208
208
```
209
209
210
210
## Change Log
211
+ * v1.3.1: prevent the mounting of code if the Lambda uses an ECR Image
212
+ * v1.3.0: add support for built-in Esbuild in Serverless Framework v4 #267
211
213
* v1.2.1: Fix custom-resource bucket compatibility with serverless >3.39.0, continue improving support for `AWS_ENDPOINT_URL`
212
214
* v1.2.0: Add docker-compose config and fix autostart when plugin is not active
213
215
* v1.1.3: Fix replacing host from environment variable `AWS_ENDPOINT_URL`
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ provider:
4
4
name : aws
5
5
profile : ${opt:profile, self:custom.profile}
6
6
stage : ${opt:stage, self:custom.defaultStage}
7
- runtime : nodejs16 .x
7
+ runtime : nodejs20 .x
8
8
lambdaHashingVersion : ' 20201221'
9
9
10
10
custom :
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " serverless-localstack" ,
3
- "version" : " 1.2 .1" ,
3
+ "version" : " 1.3 .1" ,
4
4
"description" : " Connect Serverless to LocalStack!" ,
5
5
"main" : " src/index.js" ,
6
6
"scripts" : {
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ const defaultConfig = {
16
16
service : 'aws-nodejs' ,
17
17
provider : {
18
18
name : 'aws' ,
19
- runtime : 'nodejs12 .x' ,
19
+ runtime : 'nodejs20 .x' ,
20
20
lambdaHashingVersion : '20201221' ,
21
21
environment : {
22
22
LAMBDA_STAGE :
Original file line number Diff line number Diff line change @@ -198,10 +198,10 @@ class LocalstackPlugin {
198
198
199
199
// Patch plugin methods
200
200
function compileFunction ( functionName ) {
201
- if ( ! this . shouldMountCode ( ) ) {
201
+ const functionObject = this . serverless . service . getFunction ( functionName ) ;
202
+ if ( functionObject . image || ! this . shouldMountCode ( ) ) {
202
203
return compileFunction . _functionOriginal . apply ( null , arguments ) ;
203
204
}
204
- const functionObject = this . serverless . service . getFunction ( functionName ) ;
205
205
functionObject . package = functionObject . package || { } ;
206
206
functionObject . package . artifact = __filename ;
207
207
return compileFunction . _functionOriginal
You can’t perform that action at this time.
0 commit comments