My problem is related to specific status code of permanent redirection in next.js. Status code that I want to achieve is 301, instead of default 308 which serverless provides.
After a lot of articles, I have found out that serverless has limitation in free version, and it isn't possible to use has property, which could eventualy allow me to configure serverles.yml file to redirect with 301 status code.
I am aware of similiraties with 301 and 308 status code, both of them will provide a permanent redirect, but in my case, I would like to customize redirection with 301 status code.
Is it possible to achive that? If someone has similar issue, please share with me. Thank you in advance!