Compare commits

..

No commits in common. "c2cf89f1d2dc411923a9e9fdfdc01c11cb84cbe8" and "bff5aa05f5edf11fbbd155b838a2dedebcd8c84d" have entirely different histories.

2 changed files with 7 additions and 5 deletions

View File

@ -41,7 +41,10 @@ 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"])])
procs = await Promise.all([
run(["bun", "run", noElide, "--filter=@workshop/http", "start"]),
run(["bun", "run", noElide, "--filter=@workshop/spike", "bot:discord"]),
])
console.log("✅ All processes completed successfully")
} catch (error) {
console.error("❌ One or more processes failed:", error)

View File

@ -19,7 +19,6 @@ const server = serve({
"/gitea/webhook": {
POST: async (req) => {
const payload = await req.json()
console.log(`🌵 Received Gitea webhook`)
try {
await handleGiteaWebhook(payload as any)
@ -29,7 +28,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)
@ -40,9 +39,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 = (