Compare commits

..

2 Commits

Author SHA1 Message Date
c2cf89f1d2 Only one proc needed
Some checks are pending
CI / test (push) Waiting to run
2025-11-07 15:29:27 -08:00
f404f7c99b add logs 2025-11-07 15:07:24 -08:00
2 changed files with 5 additions and 7 deletions

View File

@ -41,10 +41,7 @@ try {
const isDev = process.env.NODE_ENV !== "production"
const noElide = isDev ? "--elide-lines=0" : ""
procs = await Promise.all([
run(["bun", "run", noElide, "--filter=@workshop/http", "start"]),
run(["bun", "run", noElide, "--filter=@workshop/spike", "bot:discord"]),
])
procs = await Promise.all([run(["bun", "run", noElide, "--filter=@workshop/http", "start"])])
console.log("✅ All processes completed successfully")
} catch (error) {
console.error("❌ One or more processes failed:", error)

View File

@ -19,6 +19,7 @@ const server = serve({
"/gitea/webhook": {
POST: async (req) => {
const payload = await req.json()
console.log(`🌵 Received Gitea webhook`)
try {
await handleGiteaWebhook(payload as any)
@ -28,7 +29,7 @@ const server = serve({
timestamp: new Date().toISOString(),
message: error instanceof Error ? error.message : String(error),
stack: error instanceof Error ? error.stack : undefined,
payload
payload,
}
errors.push(errorLog)
console.error("Webhook error:", errorLog)
@ -39,9 +40,9 @@ const server = serve({
"/errors": {
GET: () => {
return new Response(JSON.stringify(errors, null, 2), {
headers: { "Content-Type": "application/json" }
headers: { "Content-Type": "application/json" },
})
}
},
},
"/discord/auth": async () => {
const html = (