This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
import { notFound } from "next/navigation";
import type { ReactNode } from "react";
/**
* 生产环境默认关闭 E2E fixture(安全审查 #3)。
* 本地 / CI / 显式 ALLOW_E2E_FIXTURES=1 可访问。
*/
export default function E2eFixturesLayout({
children,
}: {
children: ReactNode;
}) {
const allow =
process.env.NODE_ENV !== "production" ||
process.env.ALLOW_E2E_FIXTURES === "1";
if (!allow) {
notFound();
}
return children;