import type { NextConfig } from "next"; const nextConfig: NextConfig = { reactStrictMode: true, // Standalone server bundle for the Docker runtime image (see Dockerfile). output: "standalone", images: { formats: ["image/avif", "image/webp"], }, // Legacy portal URLs (old bookmarks, emailed links). async redirects() { return [ { source: "/public/member/memberRegistrationform/:code", destination: "/register?ref=:code", permanent: false }, { source: "/public/member/memberRegistrationform", destination: "/register", permanent: false }, { source: "/forgetPassword/form", destination: "/forgot-password", permanent: false }, { source: "/goodie-bag/:id", destination: "/goodie-bag", permanent: false }, ]; }, }; export default nextConfig;