docs: Add custom domain configuration for VITE_ALLOWED_HOSTS#727
docs: Add custom domain configuration for VITE_ALLOWED_HOSTS#727leoric-crown wants to merge 1 commit intocoleam00:mainfrom
Conversation
- Add VITE_ALLOWED_HOSTS documentation to README.md with Caddy example - Update Docusaurus configuration docs with comprehensive custom domain setup - Update CLAUDE.md with custom domain configuration section - Fix Docusaurus logo display issues by using correct logo file paths - Upgrade React Flow: reactflow v11 → @xyflow/react v12 (official package rename) - Add example configuration for archon.lan local network access This enables users to access Archon via custom domains through reverse proxies like Caddy, addressing the "host not allowed" error when using custom hostnames. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
0ee2dec to
6861544
Compare
WalkthroughAdds documentation for configuring custom domains via VITE_ALLOWED_HOSTS (including examples, use cases, and restart notes), updates quick reference, and includes a Caddy example. Duplicates the new section in README. Adjusts image asset paths for the Docusaurus logo and homepage icon. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests
Tip 👮 Agentic pre-merge checks are now available in preview!Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.
Please see the documentation for more information. Example: reviews:
pre_merge_checks:
custom_checks:
- name: "Undocumented Breaking Changes"
mode: "warning"
instructions: |
Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal).Please share your feedback with us on this Discord post. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 0
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (4)
docs/docs/configuration.mdx (4)
245-251: Incorrect container-to-container hostnames in examples.Use lowercase service names in URLs; uppercase “Archon-Server” will not resolve on the bridge network.
Apply:
-- Frontend → Server: `http://Archon-Server:8080` +- Frontend → Server: `http://archon-server:8080`
260-268: Proxy target hostname should match service name.Vite proxy config must target archon-server, not Archon-Server.
Apply:
- target: 'http://Archon-Server:8080', + target: 'http://archon-server:8080',
277-288: Same hostname issue for Socket.IO proxy.Apply:
- target: 'http://Archon-Server:8080', + target: 'http://archon-server:8080',
77-84: Service names in table: match docker-compose and remove nonexistent "archon-docs"
- Change "Server | Archon-Server" → "Server | archon-server".
- Do NOT rename "archon-frontend" to "archon-ui" — docker-compose.yml uses archon-frontend.
- Remove or correct the "Documentation | archon-docs" row; there is no archon-docs service in docker-compose.yml. Either add that service to docker-compose or update the table with the actual service/host-port.
Location: docs/docs/configuration.mdx lines 77–84
🧹 Nitpick comments (3)
docs/src/pages/index.js (2)
7-16: Remove redundant static Lucide import to avoid double-bundling.Icons are loaded dynamically later; this static import needlessly increases bundle size.
Apply:
-import { - ArrowRight, - Database, - Zap, - Globe, - FileText, - Cpu, - CheckSquare, - Plug - } from 'lucide-react';
262-288: Make image paths baseUrl-aware.Absolute paths break if baseUrl changes. Use useBaseUrl for robustness.
Apply:
+import useBaseUrl from '@docusaurus/useBaseUrl'; ... - <img src="/img/logo-neon.png" alt="Archon" className={styles.archonIcon} /> + <img src={useBaseUrl('/img/logo-neon.png')} alt="Archon" className={styles.archonIcon} />docs/docs/configuration.mdx (1)
144-149: Restart command: align container name.Be consistent with service naming across docs.
Apply:
-docker compose restart archon-frontend +docker compose restart archon-ui
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (2)
docs/package-lock.jsonis excluded by!**/package-lock.jsondocs/static/img/logo-neon.pngis excluded by!**/*.png
📒 Files selected for processing (4)
README.md(1 hunks)docs/docs/configuration.mdx(1 hunks)docs/docusaurus.config.js(1 hunks)docs/src/pages/index.js(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: Backend Tests (Python + pytest)
🔇 Additional comments (5)
docs/src/pages/index.js (2)
270-270: Asset path fix LGTM.Switching to /img/logo-neon.png aligns with the static assets location.
24-41: Verified: @xyflow/react v12 dynamic imports & CSS path are correct.Importing "@xyflow/react/dist/style.css" is supported and using <ReactFlow proOptions={{ hideAttribution: true }} /> is the correct API in v12.
docs/docusaurus.config.js (1)
134-136: Navbar logo path correction LGTM.img/logo-neon.png is the correct static path under Docusaurus’ /static. No other changes needed here.
docs/docs/configuration.mdx (1)
106-116: Nice addition: VITE_ALLOWED_HOSTS documentation.Clear and actionable; matches the PR objective to resolve “host not allowed” errors.
Consider adding a brief note that values should be raw hostnames (no protocol/port), e.g., archon.lan, not http://archon.lan:3737.
README.md (1)
384-387: Standardize docker-compose commands to use the service name "archon-frontend"docker-compose.yml defines the service as archon-frontend and sets container_name to archon-ui; docs mix both. Use the compose service name for docker compose commands (e.g., keep
docker compose restart archon-frontendand change occurrences likedocker compose logs -f archon-ui→docker compose logs -f archon-frontend), or explicitly state when you mean the container_name.Likely an incorrect or invalid review comment.
|
Solid contribution, please resolve conflicts and reopen if you want us to take a look at this again. Thank you! |
) * fix(web): add query error states to sidebar and context components (#707) 8 useQuery call sites showed misleading empty states when the backend was unreachable. Users saw "No conversations yet" or "No workflow runs" instead of an error indicator, making API failures invisible. Changes: - ProjectContext: expose isErrorCodebases through context interface - Sidebar: show "Failed to load projects — retrying" when codebases query errors - AllConversationsView: show "Failed to load — retrying" instead of empty state on conversations error - ProjectDetail: add error branches for both conversations and workflow runs queries - WorkflowInvoker: return error element instead of null on fetch failure - MessageList (WorkflowDispatchInline): show ⚠ warning icon instead of infinite spinner on error Fixes #707 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * chore: Auto-commit workflow artifacts (archon-fix-github-issue) --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
…oleam00#727) * fix(web): add query error states to sidebar and context components (coleam00#707) 8 useQuery call sites showed misleading empty states when the backend was unreachable. Users saw "No conversations yet" or "No workflow runs" instead of an error indicator, making API failures invisible. Changes: - ProjectContext: expose isErrorCodebases through context interface - Sidebar: show "Failed to load projects — retrying" when codebases query errors - AllConversationsView: show "Failed to load — retrying" instead of empty state on conversations error - ProjectDetail: add error branches for both conversations and workflow runs queries - WorkflowInvoker: return error element instead of null on fetch failure - MessageList (WorkflowDispatchInline): show ⚠ warning icon instead of infinite spinner on error Fixes coleam00#707 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * chore: Auto-commit workflow artifacts (archon-fix-github-issue) --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
…oleam00#727) * fix(web): add query error states to sidebar and context components (coleam00#707) 8 useQuery call sites showed misleading empty states when the backend was unreachable. Users saw "No conversations yet" or "No workflow runs" instead of an error indicator, making API failures invisible. Changes: - ProjectContext: expose isErrorCodebases through context interface - Sidebar: show "Failed to load projects — retrying" when codebases query errors - AllConversationsView: show "Failed to load — retrying" instead of empty state on conversations error - ProjectDetail: add error branches for both conversations and workflow runs queries - WorkflowInvoker: return error element instead of null on fetch failure - MessageList (WorkflowDispatchInline): show ⚠ warning icon instead of infinite spinner on error Fixes coleam00#707 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * chore: Auto-commit workflow artifacts (archon-fix-github-issue) --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Summary
VITE_ALLOWED_HOSTSconfiguration to enable custom domain accessChanges Made
reactflowv11 to@xyflow/reactv12 (official package rename)Problem Solved
Resolves the "Blocked request. This host is not allowed" error when accessing Archon via custom domains like
archon.lanthrough reverse proxies.Test Plan
🤖 Generated with Claude Code
Summary by CodeRabbit
Documentation
Bug Fixes