feat(cloud): add ChatGPT login and D1 sync

This commit is contained in:
Codex committed 2026-09-25 21:24:18 -05:00
1 parent e2d873fe7f
commit 997859434e
8 files changed
+142 -19

No files matched your search

+1 -1
View File
@@ -8,7 +8,7 @@ const meta = new URL("../dist/.openai/", import.meta.url);
await rm(dist, { recursive: true, force: true });
await Promise.all([mkdir(server, { recursive: true }), mkdir(meta, { recursive: true })]);
const [rawIndexHtml, addonsJs] = await Promise.all([text("index.html"), text("addons.js")]);
const release = "1.0.0";
const release = "1.1.0";
const indexHtml = rawIndexHtml.replace('src="addons.js"', `src="addons.js?v=${release}"`);
await writeFile(new URL("assets.js", server), `export const indexHtml=${JSON.stringify(indexHtml)};\nexport const addonsJs=${JSON.stringify(addonsJs)};\n`);
await copyFile(new URL("../worker/index.js", import.meta.url), new URL("index.js", server));