AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.
HTML ai-agentcloudflarecloudflare-d1cloudflare-r2cloudflare-workersdockerelectronevernoteevernote-alternativeknowledge-basemcpnote-takingobsidian-alternativeoffline-firstpersonal-knowledge-basepwaself-hostedsqlitetiptapweb-clipper
fix(deploy): preserve verification diagnostics
tianma-if6911169e6b5c
diff --git a/scripts/verify-deployment.mjs b/scripts/verify-deployment.mjsindex d217f272..0f691ceb 100644--- a/scripts/verify-deployment.mjs+++ b/scripts/verify-deployment.mjs@@ -223,6 +223,9 @@ const main = async () => {if (import.meta.main) {main().catch((error) => {console.error(`[fail] ${error instanceof Error ? error.message : String(error)}`);- process.exit(1);+ // Cloudflare Builds captures stderr through a pipe. Let the stream flush+ // before Bun exits so the actionable failure is not lost behind the+ // generic parent-script exit messages.+ process.exitCode = 1;});}diff --git a/tests/deployment-entrypoints.test.ts b/tests/deployment-entrypoints.test.tsindex be458e93..4f6f6b90 100644--- a/tests/deployment-entrypoints.test.ts+++ b/tests/deployment-entrypoints.test.ts@@ -112,6 +112,13 @@ describe("Cloudflare deployment entrypoints", () => {expect(wranglerConfig).toContain('globs = ["modules/*.js"]');});+ test("deployment verification lets piped diagnostics flush before exiting", () => {+ const verificationScript = readRepositoryFile("scripts/verify-deployment.mjs");++ expect(verificationScript).toContain("process.exitCode = 1");+ expect(verificationScript).not.toContain("process.exit(1)");+ });+test("online deployment declares the required authentication Secret", () => {const example = readRepositoryFile(".dev.vars.example");expect(example).toMatch(/^EDGE_EVER_AUTH_PASSWORD=\s*$/m);