diff --git a/apps/web/app/dashboard/new/page.tsx b/apps/web/app/dashboard/new/page.tsx
index c1fc631..34c1795 100644
--- a/apps/web/app/dashboard/new/page.tsx
+++ b/apps/web/app/dashboard/new/page.tsx
@@ -153,13 +153,23 @@ const NewServerPage = async ({
return (
<>
-
-
-
+ {settings.billingProvider === "nobilling" ? (
+
+
+
+ ) : (
+
+
+
+ )}
>
);
};
diff --git a/apps/web/app/dashboard/page.tsx b/apps/web/app/dashboard/page.tsx
index 9270afe..ae6019a 100644
--- a/apps/web/app/dashboard/page.tsx
+++ b/apps/web/app/dashboard/page.tsx
@@ -13,6 +13,7 @@ import {
} from "@/components/ui/empty";
import { prisma } from "@/lib/db";
import { requireUser } from "@/lib/session";
+import { getPanelSettings } from "@/lib/settings";
import { cn } from "@/lib/utils";
import { PageBody, PageHeader } from "./components/page-header";
@@ -20,6 +21,7 @@ import { ServerGrid } from "./components/server-grid";
const DashboardPage = async () => {
const user = await requireUser();
+ const settings = await getPanelSettings();
const rows = await prisma.server.findMany({
include: {
allocation: { select: { ip: true, ipAlias: true, port: true } },
@@ -63,7 +65,11 @@ const DashboardPage = async () => {
if (servers.length === 0) {
return (
<>
-
+ {settings.billingProvider === "nobilling" ? (
+
+ ) : (
+
+ )}
@@ -88,12 +94,14 @@ const DashboardPage = async () => {
-
+ {settings.billingProvider === "nobilling" ? null : (
+
+ )}
diff --git a/apps/web/lib/billing-providers.ts b/apps/web/lib/billing-providers.ts
index 71d04ce..df43374 100644
--- a/apps/web/lib/billing-providers.ts
+++ b/apps/web/lib/billing-providers.ts
@@ -4,6 +4,7 @@ export const BILLING_PROVIDERS = [
"blesta",
"paymenter",
"builtin",
+ "nobilling",
] as const;
export type BillingProvider = (typeof BILLING_PROVIDERS)[number];
@@ -35,6 +36,12 @@ export const BILLING_PROVIDER_INFO: Record<
setup:
"Add a BytePanel server in BytePay with the API URL and key below, then set the BYTEPAY_* variables for sign-in.",
},
+ nobilling: {
+ description: "Just using BytePanel for personal use? Disable Billing!",
+ external: false,
+ label: "No Billing",
+ setup: "No setup needed!",
+ },
paymenter: {
description: "Sell servers in Paymenter. Customers order and pay there.",
external: true,
diff --git a/apps/web/prisma/migrations/20261128120000_nobilling_provider/migration.sql b/apps/web/prisma/migrations/20261128120000_nobilling_provider/migration.sql
new file mode 100644
index 0000000..60ae601
--- /dev/null
+++ b/apps/web/prisma/migrations/20261128120000_nobilling_provider/migration.sql
@@ -0,0 +1,2 @@
+-- AlterEnum
+ALTER TYPE "BillingProvider" ADD VALUE 'nobilling';
diff --git a/apps/web/prisma/schema.prisma b/apps/web/prisma/schema.prisma
index dfdcef9..c0b2d15 100644
--- a/apps/web/prisma/schema.prisma
+++ b/apps/web/prisma/schema.prisma
@@ -466,6 +466,7 @@ enum BillingProvider {
blesta
paymenter
builtin
+ nobilling
}
model PanelSettings {