Fix WebUI LAN startup handling

This commit is contained in:
武阳
2026-05-06 21:54:00 +08:00
parent 1aafc0fce7
commit 2349075a82
2 changed files with 50 additions and 9 deletions
+6 -1
View File
@@ -1,7 +1,12 @@
import type { NextConfig } from "next";
const allowedDevOrigins = (process.env.CLAW_ALLOWED_DEV_ORIGINS ?? "")
.split(",")
.map((origin) => origin.trim())
.filter(Boolean);
const nextConfig: NextConfig = {
/* config options here */
allowedDevOrigins,
};
export default nextConfig;