Restrict ops page access to configured admin emails

This commit is contained in:
2569718930@qq.com
2026-03-23 00:33:11 +08:00
parent f8b17d16ea
commit 7cdd6102c6
3 changed files with 49 additions and 1 deletions
+3 -1
View File
@@ -1,11 +1,13 @@
import type { Metadata } from "next";
import { OpsDashboard } from "@/components/ops/OpsDashboard";
import { requireOpsAdmin } from "@/lib/ops-admin";
export const metadata: Metadata = {
title: "PolyWeather Ops",
description: "PolyWeather lightweight operations dashboard.",
};
export default function OpsPage() {
export default async function OpsPage() {
await requireOpsAdmin("/ops");
return <OpsDashboard />;
}