You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 15, 2024. It is now read-only.
I am new to serverless and from the jump, I noticed that layers using the plugin "serverless-layers" cannot include user-defined modules (common code).
Please add support to allow layer creation from folders (which can also include requirements.txt)
The text was updated successfully, but these errors were encountered:
Inspecting the source code, I found this undocumented option copyBeforeInstall
serverless-layers:
customInstallationCommand: npm run myCustomCommand # If you use NodeJS, but you can set the command that suits your casecopyBeforeInstall:
- package-lock.json # Again, if you use NodeJS so please check the repo for default files needed for every package manager
- path/to/custom/files # This file will be part of the layers
In addition, the customInstallationCommand option can give the flexibility needed to do anything with copyBeforeInstall files set.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I am new to serverless and from the jump, I noticed that layers using the plugin "serverless-layers" cannot include user-defined modules (common code).
Please add support to allow layer creation from folders (which can also include requirements.txt)
The text was updated successfully, but these errors were encountered: