19 lines
577 B
TypeScript
19 lines
577 B
TypeScript
import { NextConfig } from "next";
|
|
import createNextIntlPlugin from "next-intl/plugin";
|
|
|
|
const nextConfig: NextConfig = {
|
|
async redirects() {
|
|
return [
|
|
// Deutsche Bezeichnungen -> kanonische Pfade
|
|
{ source: "/impressum", destination: "/imprint", permanent: true },
|
|
{ source: "/datenschutz", destination: "/privacy", permanent: true },
|
|
|
|
// Optional: Plural/Varianten
|
|
{ source: "/privacy-policy", destination: "/privacy", permanent: true },
|
|
];
|
|
},
|
|
};
|
|
|
|
const withNextIntl = createNextIntlPlugin();
|
|
export default withNextIntl(nextConfig);
|