clawport-ui 0.6.6 → 0.6.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/next.config.mjs +15 -1
  2. package/package.json +1 -1
package/next.config.mjs CHANGED
@@ -1,14 +1,28 @@
1
1
  import { dirname } from "node:path";
2
2
  import { fileURLToPath } from "node:url";
3
+ import { networkInterfaces } from "node:os";
3
4
 
4
5
  const __dirname = dirname(fileURLToPath(import.meta.url));
5
6
 
7
+ /** Collect all local network IPs so the dev server accepts cross-origin
8
+ * requests from LAN, Tailscale, or any non-localhost address. */
9
+ function getLocalIPs() {
10
+ const ips = [];
11
+ const interfaces = networkInterfaces();
12
+ for (const addrs of Object.values(interfaces)) {
13
+ for (const addr of addrs) {
14
+ if (!addr.internal) ips.push(addr.address);
15
+ }
16
+ }
17
+ return ips;
18
+ }
19
+
6
20
  /** @type {import('next').NextConfig} */
7
21
  const nextConfig = {
8
22
  turbopack: {
9
23
  root: __dirname,
10
24
  },
11
- allowedDevOrigins: ["*"],
25
+ allowedDevOrigins: ["local-origin.dev", "*.local-origin.dev", ...getLocalIPs()],
12
26
  };
13
27
 
14
28
  export default nextConfig;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clawport-ui",
3
- "version": "0.6.6",
3
+ "version": "0.6.7",
4
4
  "description": "Open-source dashboard for managing, monitoring, and chatting with your OpenClaw AI agents.",
5
5
  "homepage": "https://clawport.dev",
6
6
  "repository": {