Skip to content

feat: add coordinode-docs.sw.foundation bug reports endpoint#35

Merged
polaz merged 1 commit intomainfrom
feat/#34-coordinode-docs-endpoint
Apr 12, 2026
Merged

feat: add coordinode-docs.sw.foundation bug reports endpoint#35
polaz merged 1 commit intomainfrom
feat/#34-coordinode-docs-endpoint

Conversation

@polaz
Copy link
Copy Markdown
Member

@polaz polaz commented Apr 12, 2026

Summary

  • Add coordinode-docs.sw.foundation to SITES with repo: structured-world/coordinode
  • Add wrangler route for /api/report-bug

Why a subdomain proxy?

coordinode.com DNS is on PowerDNS (not Cloudflare), so Cloudflare Worker zone routes for docs.coordinode.com are impossible. coordinode-docs.sw.foundation (in the sw.foundation CF zone) acts as API proxy — same pattern as gitlab-mcp.sw.foundation and privacy.sw.foundation.

DNS record already created: coordinode-docs.sw.foundation CNAME structured-world.github.io (proxied).

Closes #34

- Add coordinode-docs.sw.foundation to SITES with repo
  structured-world/coordinode and https://docs.coordinode.com origin
- Add wrangler route for /api/report-bug

coordinode.com DNS is on PowerDNS (not Cloudflare), so direct zone
routing is impossible — sw.foundation subdomain acts as API proxy.

Closes #34
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 12, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 41583654-722f-47fc-8747-af67a284e5b4

📥 Commits

Reviewing files that changed from the base of the PR and between 7b7b11b and 7e7d623.

📒 Files selected for processing (2)
  • src/index.ts
  • wrangler.toml

📝 Walkthrough

Summary by CodeRabbit

  • Chores
    • Added configuration for the coordinode-docs.sw.foundation domain with corresponding HTTP routing and bug reporting endpoint support.

Walkthrough

This PR adds support for bug report submissions from docs.coordinode.com through a coordinode-docs.sw.foundation proxy subdomain. Changes include a new SITES configuration entry with GitHub repository mapping and CORS allowlist, plus a corresponding Cloudflare Worker route mapping.

Changes

Cohort / File(s) Summary
SITES Configuration
src/index.ts
Added coordinode-docs.sw.foundation entry to SITES map with structured-world/coordinode repository and CORS allowlist including https://docs.coordinode.com, https://structured-world.github.io, and local dev origins.
Worker Routing
wrangler.toml
Added HTTP route mapping coordinode-docs.sw.foundation/api/report-bug to the sw.foundation zone in Cloudflare Worker routes array.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related issues

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately describes the main change: adding a new subdomain endpoint for bug reports, which is the primary objective of the PR.
Description check ✅ Passed The description clearly explains the purpose, rationale for using a proxy subdomain, and lists the specific code changes being made.
Linked Issues check ✅ Passed The PR implements all requirements from issue #34: adds coordinode-docs.sw.foundation to SITES with the correct repo, and adds the wrangler route for /api/report-bug.
Out of Scope Changes check ✅ Passed All changes are directly related to the linked issue #34. The modifications to SITES configuration and wrangler routes are necessary and within scope.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/#34-coordinode-docs-endpoint

Comment @coderabbitai help to get the list of available commands and usage tips.

@polaz polaz merged commit 1f2c512 into main Apr 12, 2026
4 checks passed
@polaz polaz deleted the feat/#34-coordinode-docs-endpoint branch April 12, 2026 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: add coordinode-docs.sw.foundation bug reports endpoint

1 participant