Update story route from /editor to /story and add redirect

This commit is contained in:
Riccardo Giorato
2025-12-26 22:13:45 +01:00
parent b64efc71f6
commit 5a1d0e3849
5 changed files with 11 additions and 2 deletions
+9
View File
@@ -6,6 +6,15 @@ const nextConfig = {
images: {
unoptimized: true,
},
async redirects() {
return [
{
source: '/editor/:slug*',
destination: '/story/:slug*',
permanent: true,
},
]
},
}
export default nextConfig