chore(deploy): deploy PWA shell and backend to production

This commit is contained in:
OmO Orchestrator committed 2026-11-17 22:34:58 -05:00
1 parent b0d58396b9
commit 63b4456080
11 files changed
+411 -4

No files matched your search

+6 -1
View File
@@ -1,5 +1,6 @@
import { mkdir, readFile, writeFile } from "node:fs/promises";
import { randomUUID } from "node:crypto";
import { tmpdir } from "node:os";
import { join } from "node:path";
/**
@@ -25,7 +26,11 @@ import { join } from "node:path";
export const MAX_BLOB_SIZE_BYTES = 4 * 1024 * 1024;
const STORE_DIR = process.env.BLOB_STORE_DIR ?? join(process.cwd(), ".data", "blobs");
// `process.cwd()` is the read-only deployment bundle on Vercel's serverless
// runtime - only `os.tmpdir()` is writable there. Local dev and tests don't
// care which writable directory this resolves to, so the same path works
// everywhere without an environment-specific branch.
const STORE_DIR = process.env.BLOB_STORE_DIR ?? join(tmpdir(), "the-commons-hollow-blobs");
// Only server-generated ids (randomUUID) are ever accepted for lookup;
// anything else - including path-traversal attempts - is treated as "not