@cybermem/dashboard 0.9.0 → 0.9.2
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 +3 -0
- package/app/api/environment/route.ts +5 -5
- package/package.json +1 -1
package/Dockerfile
CHANGED
|
@@ -39,6 +39,9 @@ COPY --from=builder /app/public ./public
|
|
|
39
39
|
COPY --from=builder /app/.next/standalone ./
|
|
40
40
|
COPY --from=builder /app/.next/static ./.next/static
|
|
41
41
|
|
|
42
|
+
# Fix sqlite3 bindings by installing it explicitly in the production image
|
|
43
|
+
RUN npm install sqlite3@5.1.7
|
|
44
|
+
|
|
42
45
|
# Expose port
|
|
43
46
|
EXPOSE 3000
|
|
44
47
|
|
|
@@ -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}`,
|
|
20
20
|
type: "tailscale",
|
|
21
21
|
editable: false,
|
|
22
22
|
hint: "Using Tailscale Funnel for secure remote access",
|
|
@@ -30,7 +30,7 @@ export async function GET(request: Request) {
|
|
|
30
30
|
? publicUrl.slice(0, -1)
|
|
31
31
|
: publicUrl;
|
|
32
32
|
return NextResponse.json({
|
|
33
|
-
url:
|
|
33
|
+
url: formattedUrl,
|
|
34
34
|
type: "vps",
|
|
35
35
|
editable: true,
|
|
36
36
|
hint: "Configure CYBERMEM_PUBLIC_URL to change this URL",
|
|
@@ -44,7 +44,7 @@ export async function GET(request: Request) {
|
|
|
44
44
|
if (host.includes(".local")) {
|
|
45
45
|
const hostname = host.split(":")[0];
|
|
46
46
|
return NextResponse.json({
|
|
47
|
-
url: `http://${hostname}:${MCP_PORT}
|
|
47
|
+
url: `http://${hostname}:${MCP_PORT}`,
|
|
48
48
|
type: "lan",
|
|
49
49
|
editable: false,
|
|
50
50
|
hint: "Detected LAN access via mDNS (.local)",
|
|
@@ -56,7 +56,7 @@ export async function GET(request: Request) {
|
|
|
56
56
|
if (ipMatch) {
|
|
57
57
|
const protocol = request.headers.get("x-forwarded-proto") || "http";
|
|
58
58
|
return NextResponse.json({
|
|
59
|
-
url: `${protocol}://${ipMatch[1]}:${MCP_PORT}
|
|
59
|
+
url: `${protocol}://${ipMatch[1]}:${MCP_PORT}`,
|
|
60
60
|
type: "ip",
|
|
61
61
|
editable: true,
|
|
62
62
|
hint: "Detected IP-based access",
|
|
@@ -65,7 +65,7 @@ export async function GET(request: Request) {
|
|
|
65
65
|
|
|
66
66
|
// Default to localhost
|
|
67
67
|
return NextResponse.json({
|
|
68
|
-
url: `http://localhost:${MCP_PORT}
|
|
68
|
+
url: `http://localhost:${MCP_PORT}`,
|
|
69
69
|
type: "local",
|
|
70
70
|
editable: false,
|
|
71
71
|
hint: "Running locally",
|