I am converting projects from CDK to serverless. I can deploy using a CDKv2 my node v18.0.0 code, no problem. It gets invoked using three different paths. First returns an html form. Second one receives the filled form and the third writes the form content to file in a bucket.
First one completes fine. The last step of the second one is to redirect the user’s browser to a new location, so I issue a 307 and location / url.
I get a handler error from serverlessSdk. Same code with CDK works fine. I will try SAM next, but I would like to use SLS. Is returning a 307 an known issue?