Domain and DNS
Esta página aún no está disponible en tu idioma.
ShareOut only needs one correct public origin: SHAREOUT_BASE_URL. Everything
(links, OAuth callbacks, skill URLs, SDK) should hang off that origin unless you
explicitly set ARTIFACT_ORIGIN.
Default: workers.dev
Section titled “Default: workers.dev”After deploy you get something like:
https://shareout.<account-subdomain>.workers.devSet:
SHAREOUT_BASE_URL = "https://shareout.<account-subdomain>.workers.dev"No DNS work required. Good for trying the product.
Custom domain (company URL)
Section titled “Custom domain (company URL)”- In Cloudflare: Workers & Pages → your worker → Domains & Routes → Add a custom
domain (for example
shareout.company.com). - Complete DNS as the dashboard instructs (domain should be on Cloudflare).
- Update
SHAREOUT_BASE_URLtohttps://shareout.company.com(no trailing slash). - Redeploy or save vars and roll a new deployment.
- If Google sign-in is enabled, set the OAuth redirect to
{SHAREOUT_BASE_URL}/auth/callback.
Cloudflare docs: Custom domains.
Workspace subdomains
Section titled “Workspace subdomains”Optional. Path URLs (/a/{slug}/) always work without wildcards.
For https://{workspace}.{apex}/…:
- Keep apex =
SHAREOUT_BASE_URLhost. - Add wildcard DNS for the same Worker (for example
*.shareout.company.com). - Ensure the certificate covers the wildcard.
- Configure the workspace subdomain in the product UI.
Agent checklist
Section titled “Agent checklist”Agents should follow skills/ShareOutSkill/deploy/cloudflare.md and load wrangler + cloudflare companion skills when available.
After any hostname change
Section titled “After any hostname change”SHAREOUT_BASE_URLmatches the browser address bar origin.- Re-smoke:
SHAREOUT_ORIGIN=… SHAREOUT_TOKEN=… npm run smoke:hello. - Update
~/.shareout/credentials"origin"for agents.
