Fixed the Manager deployment database dependency.
CI / ci (push) Canceled after 0s

Root cause
src/proxy.ts statically imported installation-state.ts, which statically imported Prisma. Additionally, the root layout statically imported business branding, which also loads Prisma. The pathname check was also incorrect for Manager deployments served at /.
This commit is contained in:
Stefan Lazic committed 2026-09-04 21:43:26 +01:00
1 parent 7f774e95bb
commit a8cdc2671e
3 files changed
+92 -10

No files matched your search

+18 -1
View File
@@ -1,7 +1,6 @@
import type { Metadata, Viewport } from "next";
import { Inter } from "next/font/google";
import { Providers } from "@/components/providers";
import { getBranding } from "@/lib/business/branding";
import "./globals.css";
const inter = Inter({
@@ -18,6 +17,13 @@ const inter = Inter({
* than "NextChair" (see that file's own fallback-order comment).
*/
export async function generateMetadata(): Promise<Metadata> {
if (process.env.MANAGER_MODE === "true") {
return {
title: { default: "NextChair Manager", template: "%s | NextChair Manager" },
description: "Manage NextChair business deployments.",
};
}
const { getBranding } = await import("@/lib/business/branding");
const branding = await getBranding();
return {
@@ -41,6 +47,17 @@ export async function generateMetadata(): Promise<Metadata> {
}
export async function generateViewport(): Promise<Viewport> {
if (process.env.MANAGER_MODE === "true") {
return {
width: "device-width",
initialScale: 1,
maximumScale: 1,
userScalable: false,
viewportFit: "cover",
themeColor: "#111b15",
};
}
const { getBranding } = await import("@/lib/business/branding");
const branding = await getBranding();
return {
width: "device-width",