Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 17 additions & 2 deletions .docker/caddy/Caddyfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Local development edge that mirrors the production Caddy routing in
# deploy/caddy/Caddyfile: a single origin serves the web app, and the
# reserved /_roomote-api/* prefix is stripped and proxied to the API.
# deploy/caddy/Caddyfile: a single origin serves the web app, public webhook
# paths go directly to the API, and the reserved /_roomote-api/* prefix is
# stripped and proxied to the API.
#
# `pnpm dev` points the ngrok web tunnel at this listener instead of the
# web app, and derives TRPC_URL as <public-url>/_roomote-api — the same
Expand Down Expand Up @@ -29,6 +30,20 @@
}
}

# Webhook URLs are public integration contracts. Send them directly to the
# API so a missing or stale web-app proxy route cannot acknowledge an event
# with the Next.js HTML fallback without actually processing it.
@api_webhooks {
path /api/webhooks /api/webhooks/*
}

handle @api_webhooks {
reverse_proxy host.docker.internal:13001 {
lb_try_duration 10s
lb_try_interval 250ms
}
}

@api {
path /_roomote-api /_roomote-api/*
}
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,6 @@ artifacts/ci-e2e/

# Scheduled-task runner lock (machine-local runtime state)
.agents/scheduled_tasks.lock

# Editor swap files
*.swp
58 changes: 17 additions & 41 deletions apps/api/src/handlers/slack/events/fast-agent-processing.test.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading