This repository was archived by the owner on Jan 28, 2025. It is now read-only.
Customize lambda functions #175
Open
Description
I'm still on the old version of serverless-nextjs-plugin
where defining a plugin in the serverless.yml file will create all the page lambda functions behind the scenes.
plugins:
- serverless-nextjs-plugin
I'm trying to add cloudwatch alerts to only one of the lambda functions that this plugin creates, but since serverless-plugin-aws-alerts
requires you to do this by specifying the alarm in the functions
section, there's no way I can think of to customize a single lambda function from the serverless-nextjs-plugin
functions:
<reference-to-function-from-serverless-nextjs-plugin>:
alarms:
- customizeFunction
plugins:
- serverless-nextjs-plugin
Is there a way to target a function created by serverless-nextjs-plugin and customize it?