Skip to content

armgit / mso

Public Imported from GitHub
0

Browser-based graphical shell and control plane for a Linux server you own — real terminal, file manager, live metrics and BYOK AI in one mobile-first workspace. Next.js 16 · React 19 · node-pty · Tailwind v4 · shadcn/ui. Public alpha, self-hosted.

fix(build): restore the turbopackIgnore annotation the route extraction dropped

Abdurrahman Fakhruld2b851ad869e
diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md
index a717230a..e2bcb5f0 100644
--- a/docs/CHANGELOG.md
+++ b/docs/CHANGELOG.md
@@ -11,6 +11,10 @@ this is the *what*, and it is what Settings → Account → About shows as “Wh
- `perf` hydration mark chain, and the LCP conclusion it overturns
- `tui` close the opencode TUI gap on the seams MSO already owns (#166)
+**Fixed**
+
+- `build` restore the turbopackIgnore annotation the route extraction dropped
+
**Faster**
- `shell` take hidden app artwork off the layout and paint path (#167)
diff --git a/lib/camoufox/http.ts b/lib/camoufox/http.ts
index b2639971..0bad026b 100644
--- a/lib/camoufox/http.ts
+++ b/lib/camoufox/http.ts
@@ -68,7 +68,10 @@ export async function handleGetCamoufoxSession(): Promise<Response> {
}
const viewerTicket = createCamoufoxViewerTicket(context.session, secret);
- const password = (await fs.readFile(PASSWD_FILE, "utf8").catch(() => "")).trim();
+ // `turbopackIgnore` is load-bearing, not a comment: PASSWD_FILE comes from the
+ // environment, so Turbopack cannot resolve it statically and would otherwise trace
+ // the whole project (which the release gate treats as a build warning = failure).
+ const password = (await fs.readFile(/* turbopackIgnore: true */ PASSWD_FILE, "utf8").catch(() => "")).trim();
if (!password) {
return Response.json({
password: null,
diff --git a/lib/mcp/oauth-discovery-contract.test.ts b/lib/mcp/oauth-discovery-contract.test.ts
index 14928cb7..83a8069d 100644
--- a/lib/mcp/oauth-discovery-contract.test.ts
+++ b/lib/mcp/oauth-discovery-contract.test.ts
@@ -2,17 +2,17 @@ import fs from "node:fs";
import path from "node:path";
import { describe, expect, it } from "vitest";
-const readSource = (relPath: string) => {
- const file = path.join(__dirname, relPath);
- const handler = file.replace(/route\.ts$/, "handler.ts");
- return fs.existsSync(handler) ? fs.readFileSync(handler, "utf8") : fs.readFileSync(file, "utf8");
-};
-
-const AUTHORIZATION_SERVER = readSource(
- "../../app/.well-known/oauth-authorization-server/route.ts",
+// Literal paths, not a helper: `path.join(__dirname, someVariable)` is dynamic
+// filesystem access, and Turbopack responds to that by tracing the whole project,
+// which fails the release gate as a build warning. When a route body moves to a
+// colocated handler.ts, point the literal at that file.
+const AUTHORIZATION_SERVER = fs.readFileSync(
+ path.join(__dirname, "../../app/.well-known/oauth-authorization-server/handler.ts"),
+ "utf8",
);
-const PROTECTED_RESOURCE = readSource(
- "../../app/.well-known/oauth-protected-resource/route.ts",
+const PROTECTED_RESOURCE = fs.readFileSync(
+ path.join(__dirname, "../../app/.well-known/oauth-protected-resource/handler.ts"),
+ "utf8",
);
const EXPECTED_SCOPES = '["read", "write", "exec", "offline_access"]';