We're using serverless-plugin-split-stacks to split the resulting CF template into nested stacks. This occurs on after:aws:package:finalize:mergeCustomProviderResources which is part of package:finalize. Because of this the Stage gets added too late and leads to errors when deploying it to AWS.
This PR moves the modifications from this plugin to the beginning of package:finalize to fix that.
We're using serverless-plugin-split-stacks to split the resulting CF template into nested stacks. This occurs on
after:aws:package:finalize:mergeCustomProviderResources
which is part ofpackage:finalize
. Because of this the Stage gets added too late and leads to errors when deploying it to AWS.This PR moves the modifications from this plugin to the beginning of
package:finalize
to fix that.