I'm currently working on a Next.js project, and I have used static export to improve performance and SEO. However, I've encountered an issue related to URL changes. I'd like to implement 301 redirect. so that search engines and users are redirected to the updated pages.
Any help, code snippets, or pointers to the right documentation would be greatly appreciated.
I have tried redirects in next.config.js and getServerSideProps but these methods are not supported in static export.