import path from 'node:path' import type { NextConfig } from "next"; const nextConfig: NextConfig = { output: 'standalone', turbopack: { root: path.join(__dirname), }, async redirects() { const germanSeoRedirects = [ '/pflanzen-erkennen-kostenlos', '/pflanzen-erkennen-app', '/pflanzen-bestimmen', '/blumen-scanner', '/zimmerpflanzen-bestimmen', '/pflanzen-pflege-app', '/pflanzen-krankheiten-erkennen', ].map((slug) => ({ source: `/de${slug}`, destination: slug, permanent: true, })) return [ { source: '/de', destination: '/', permanent: true, }, ...germanSeoRedirects, ] }, }; export default nextConfig;