Files
vantage/adminsite/next.config.ts
T
mrhid6 3e4865884c
Chart Release / chart (push) Successful in 13s
Server Deploy / deploy (push) Successful in 1m58s
feat: Updated plans and catalogue pages
2026-08-25 14:35:47 +00:00

22 lines
793 B
TypeScript

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;