@cybermem/dashboard 0.8.7 → 0.9.0

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.
package/Dockerfile CHANGED
@@ -28,7 +28,7 @@ RUN --mount=type=cache,target=/root/.pnpm-store \
28
28
 
29
29
  # Production stage
30
30
  FROM node:20-alpine AS production
31
- RUN apk add --no-cache libc6-compat
31
+ RUN apk add --no-cache libc6-compat python3 make g++
32
32
  WORKDIR /app
33
33
 
34
34
  ENV NODE_ENV=production
@@ -16,7 +16,7 @@ export async function GET(request: Request) {
16
16
  const tailscaleHostname = process.env.TAILSCALE_HOSTNAME;
17
17
  if (tailscaleHostname) {
18
18
  return NextResponse.json({
19
- url: `https://${tailscaleHostname}`,
19
+ url: `https://${tailscaleHostname}/cybermem`,
20
20
  type: "tailscale",
21
21
  editable: false,
22
22
  hint: "Using Tailscale Funnel for secure remote access",
@@ -26,8 +26,11 @@ export async function GET(request: Request) {
26
26
  // Check for VPS public URL
27
27
  const publicUrl = process.env.CYBERMEM_PUBLIC_URL;
28
28
  if (publicUrl) {
29
+ const formattedUrl = publicUrl.endsWith("/")
30
+ ? publicUrl.slice(0, -1)
31
+ : publicUrl;
29
32
  return NextResponse.json({
30
- url: publicUrl,
33
+ url: `${formattedUrl}/cybermem`,
31
34
  type: "vps",
32
35
  editable: true,
33
36
  hint: "Configure CYBERMEM_PUBLIC_URL to change this URL",
@@ -41,7 +44,7 @@ export async function GET(request: Request) {
41
44
  if (host.includes(".local")) {
42
45
  const hostname = host.split(":")[0];
43
46
  return NextResponse.json({
44
- url: `http://${hostname}:${MCP_PORT}`,
47
+ url: `http://${hostname}:${MCP_PORT}/cybermem`,
45
48
  type: "lan",
46
49
  editable: false,
47
50
  hint: "Detected LAN access via mDNS (.local)",
@@ -53,7 +56,7 @@ export async function GET(request: Request) {
53
56
  if (ipMatch) {
54
57
  const protocol = request.headers.get("x-forwarded-proto") || "http";
55
58
  return NextResponse.json({
56
- url: `${protocol}://${ipMatch[1]}:${MCP_PORT}`,
59
+ url: `${protocol}://${ipMatch[1]}:${MCP_PORT}/cybermem`,
57
60
  type: "ip",
58
61
  editable: true,
59
62
  hint: "Detected IP-based access",
@@ -62,7 +65,7 @@ export async function GET(request: Request) {
62
65
 
63
66
  // Default to localhost
64
67
  return NextResponse.json({
65
- url: `http://localhost:${MCP_PORT}`,
68
+ url: `http://localhost:${MCP_PORT}/cybermem`,
66
69
  type: "local",
67
70
  editable: false,
68
71
  hint: "Running locally",
package/middleware.ts CHANGED
@@ -60,6 +60,6 @@ export const config = {
60
60
  // - Next.js internals
61
61
  // - Static files
62
62
  // - Health check (for monitoring)
63
- "/((?!api/auth|api/health|_next|favicon.ico|.*\\.(?:svg|png|jpg|jpeg|gif|webp)$).*)",
63
+ "/((?!api/auth|api/health|api/environment|_next|favicon.ico|.*\\.(?:svg|png|jpg|jpeg|gif|webp)$).*)",
64
64
  ],
65
65
  };
package/next.config.mjs CHANGED
@@ -5,10 +5,15 @@ const nextConfig = {
5
5
  },
6
6
  output: "standalone",
7
7
  transpilePackages: ["recharts"],
8
- serverExternalPackages: ["dockerode", "ssh2"],
8
+ serverExternalPackages: ["dockerode", "ssh2", "sqlite3"],
9
9
  experimental: {},
10
10
  webpack: (config) => {
11
- config.externals = [...(config.externals || []), "ssh2", "dockerode"];
11
+ config.externals = [
12
+ ...(config.externals || []),
13
+ "ssh2",
14
+ "dockerode",
15
+ "sqlite3",
16
+ ];
12
17
  return config;
13
18
  },
14
19
  async rewrites() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cybermem/dashboard",
3
- "version": "0.8.7",
3
+ "version": "0.9.0",
4
4
  "description": "CyberMem Monitoring Dashboard",
5
5
  "homepage": "https://cybermem.dev",
6
6
  "repository": {