23 lines
410 B
TypeScript
23 lines
410 B
TypeScript
import type { NextConfig } from "next";
|
|
|
|
const nextConfig: NextConfig = {
|
|
output: "standalone",
|
|
images: {
|
|
unoptimized: true,
|
|
},
|
|
async rewrites() {
|
|
return [
|
|
{
|
|
source: '/:lang/categories/:id',
|
|
destination: '/:lang/category/:id',
|
|
},
|
|
{
|
|
source: '/categories/:id',
|
|
destination: '/th/category/:id',
|
|
},
|
|
];
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|