import type { NextConfig } from "next"; /* * Unlike web/, this app does NOT proxy /api through a rewrite. The browser * calls admin directly, so NEXT_PUBLIC_ADMIN_API_URL must be reachable from the * browser and must appear in admin's ADMIN_ORIGIN. lib/api.ts renders an * explicit not-connected state when it is not. */ const nextConfig: NextConfig = { output: "standalone", /* Plans and catalogue became one page. Both old paths are bookmarked in * staff browsers, so they redirect rather than 404. */ async redirects() { return [ { source: "/staff/plans", destination: "/staff/pricing", permanent: true }, { source: "/staff/catalogue", destination: "/staff/pricing", permanent: true }, ]; }, }; export default nextConfig;