Skip to content

feat: add configurable share URL for self-hosted portals#146

Merged
backnotprop merged 1 commit intomainfrom
feat/configurable-share-url
Feb 12, 2026
Merged

feat: add configurable share URL for self-hosted portals#146
backnotprop merged 1 commit intomainfrom
feat/configurable-share-url

Conversation

@backnotprop
Copy link
Owner

Summary

  • Adds PLANNOTATOR_SHARE_URL env var so users can self-host the share portal and have all generated share links point to their own domain
  • Threads the custom base URL through the same path as sharingEnabled: env var → server options → API response → editor state → useSharing hook → generateShareUrl()
  • Adds apps/portal/SELF-HOSTING.md with build, deploy, and configuration instructions
  • Import dialog placeholder updates dynamically to reflect the configured domain

Closes #12

Test plan

  • No env var set → share URLs default to https://share.plannotator.ai
  • PLANNOTATOR_SHARE_URL=https://custom.domain → share URLs start with configured domain
  • Import modal placeholder reflects configured domain
  • bun run build:hook && bun run build:opencode && bun run build:portal all pass
  • Portal self-hosts correctly: build, serve dist/, open a generated share link

🤖 Generated with Claude Code

Add PLANNOTATOR_SHARE_URL env var so users can point share links at
their own self-hosted portal instance instead of share.plannotator.ai.
Threads the base URL through the same path as sharingEnabled: env var →
server options → API response → editor state → useSharing hook →
generateShareUrl(). Includes self-hosting guide and documentation.

Closes #12

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@backnotprop
Copy link
Owner Author

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

🤖 Generated with Claude Code

- If this code review was useful, please react with 👍. Otherwise, react with 👎.

@backnotprop backnotprop merged commit 0b47dd5 into main Feb 12, 2026
@backnotprop backnotprop deleted the feat/configurable-share-url branch February 12, 2026 23:07
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.

Make plannotator binary point to custom URL when invoked by Claude Code

1 participant