Base Cloudflare integration with the codebase (#261)
* Base Cloudflare integration with the codebase Co-authored-by: Cursor <cursoragent@cursor.com> * Add a trigger script * tweak script * rename dir * remove preinstallation from Dockerfile * stream output * fix type error * remove redundant waitUntil * use alarm * rename to ActionSandbox * tweak timeouts * update * update wrangler types * fix bad rebase * update env var name * rename queues * add settings to avoid pesky warnings * add catch * retry enqueueIndexingJob * forward to DLQ --------- Co-authored-by: Cursor <cursoragent@cursor.com> Co-authored-by: Colin McDonnell <colinmcd94@gmail.com>
This commit is contained in:
committed by
pullfrog[bot]
parent
6a77ea6612
commit
d5508d99bb
+18
-14
@@ -3,6 +3,8 @@
|
|||||||
import { build } from "esbuild";
|
import { build } from "esbuild";
|
||||||
import { readFileSync, writeFileSync } from "fs";
|
import { readFileSync, writeFileSync } from "fs";
|
||||||
|
|
||||||
|
const isMainOnlyBuild = process.argv.includes("--main-only");
|
||||||
|
|
||||||
// Plugin to strip shebangs from output files
|
// Plugin to strip shebangs from output files
|
||||||
/**
|
/**
|
||||||
* @type {import("esbuild").Plugin}
|
* @type {import("esbuild").Plugin}
|
||||||
@@ -67,20 +69,22 @@ await build({
|
|||||||
plugins: [stripShebangPlugin],
|
plugins: [stripShebangPlugin],
|
||||||
});
|
});
|
||||||
|
|
||||||
// Build the post cleanup entry bundle
|
if (!isMainOnlyBuild) {
|
||||||
await build({
|
// Build the post cleanup entry bundle
|
||||||
...sharedConfig,
|
await build({
|
||||||
entryPoints: ["./post.ts"],
|
...sharedConfig,
|
||||||
outfile: "./post",
|
entryPoints: ["./post.ts"],
|
||||||
plugins: [stripShebangPlugin],
|
outfile: "./post",
|
||||||
});
|
plugins: [stripShebangPlugin],
|
||||||
|
});
|
||||||
|
|
||||||
// Build the get-installation-token action
|
// Build the get-installation-token action
|
||||||
await build({
|
await build({
|
||||||
...sharedConfig,
|
...sharedConfig,
|
||||||
entryPoints: ["./get-installation-token/entry.ts"],
|
entryPoints: ["./get-installation-token/entry.ts"],
|
||||||
outfile: "./get-installation-token/entry",
|
outfile: "./get-installation-token/entry",
|
||||||
plugins: [stripShebangPlugin],
|
plugins: [stripShebangPlugin],
|
||||||
});
|
})
|
||||||
|
}
|
||||||
|
|
||||||
console.log("» build completed successfully");
|
console.log("» build completed successfully");
|
||||||
|
|||||||
Reference in New Issue
Block a user