razorjack / s3-directory-listing

AWS Lambda + Serverless.js: Reacts on changes in your S3 bucket and auto-generates a nice index.html with directory listing.
24 stars 11 forks source link

Update node.js runtime #1

Open emsearcy opened 4 years ago

emsearcy commented 4 years ago

Serverless deploy output:

The runtime parameter of nodejs6.10 is no longer supported for creating or updating AWS Lambda functions. We recommend you use the new runtime (nodejs12.x) while creating or updating functions.

emsearcy commented 4 years ago

I didn't run extensive tests but it seems to work ok on nodejs12.x -- didn't see any warnings/errors in cloudwatch logs.

-  runtime: nodejs6.10
+  runtime: nodejs12.x
agstevens commented 4 years ago

In case it helps anyone else, I had an issue with webpack: line 7 of webpack.config.js

Source: https://webpack.js.org/migrate/3/#module-loaders-is-now-module-rules

brunobalves commented 4 years ago

Can anyone help me change the code to generate index.html in root directory?