Compare commits
2 Commits
bff5aa05f5
...
c2cf89f1d2
| Author | SHA1 | Date | |
|---|---|---|---|
| c2cf89f1d2 | |||
| f404f7c99b |
5
main.ts
5
main.ts
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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 = (
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user