website/next.config.mjs

20 lines
340 B
JavaScript

/** @type {import('next').NextConfig} */
const nextConfig = {
async redirects() {
return [
{
source: '/news',
destination: '/news/1',
permanent: true,
},
{
source: '/news/post',
destination: '/news/1',
permanent: true,
},
]
},
}
export default nextConfig