[GH-ISSUE #8415] [Bug] Publishing and sharing pages ignores custom domain in self-hosted mode #3814

Closed
opened 2026-03-23 21:33:22 +00:00 by mirror · 3 comments
Owner

Originally created by @spooky-finn on GitHub (Jan 2, 2026).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/8415

Bug Description

When running self-hosted app with a custom domain, publishing a page or sharing it via link generates URLs that point to appflowy.com instead of my configured domain.

This worked correctly in the past, but at some point it broke, and the UI no longer respects the custom domain.

As a result, published/shared links are unusable for self-hosted setups.

How to Reproduce

  1. Deploy AppFlowy using a self-hosted setup
  2. Configure a custom domain (e.g. https://my-domain.com)
  3. Open any page
  4. Click Publish or Share via link
  5. Copy the generated URL and make sure that generated link uses appflowy.com

Expected Behavior

The generated link should use the configured custom domain

Operating System

darwin

AppFlowy Version(s)

0.10.8

Screenshots

No response

Additional Context

No response

Originally created by @spooky-finn on GitHub (Jan 2, 2026). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/8415 ### Bug Description When running self-hosted app with a custom domain, publishing a page or sharing it via link generates URLs that point to appflowy.com instead of my configured domain. This worked correctly in the past, but at some point it broke, and the UI no longer respects the custom domain. As a result, published/shared links are unusable for self-hosted setups. ### How to Reproduce 1. Deploy AppFlowy using a self-hosted setup 2. Configure a custom domain (e.g. https://my-domain.com) 3. Open any page 4. Click Publish or Share via link 5. Copy the generated URL and make sure that generated link uses appflowy.com ### Expected Behavior The generated link should use the configured custom domain ### Operating System darwin ### AppFlowy Version(s) 0.10.8 ### Screenshots _No response_ ### Additional Context _No response_
Author
Owner

@appflowy commented on GitHub (Jan 2, 2026):

@spooky-finn Did you set APPFLOWY_WEB_URL environment?

<!-- gh-comment-id:3705741424 --> @appflowy commented on GitHub (Jan 2, 2026): @spooky-finn Did you set APPFLOWY_WEB_URL environment?
Author
Owner

@spooky-finn commented on GitHub (Jan 2, 2026):

@appflowy Yep, this var is set
APPFLOWY_WEB_URL=${SCHEME}://${FQDN}
where FQDN=appflowy.example.com, SCHEME=https

<!-- gh-comment-id:3706235650 --> @spooky-finn commented on GitHub (Jan 2, 2026): @appflowy Yep, this var is set `APPFLOWY_WEB_URL=${SCHEME}://${FQDN} ` where `FQDN=appflowy.example.com`, `SCHEME=https`
Author
Owner

@appflowy commented on GitHub (Jan 3, 2026):

@spooky-finn The FQDN should be your custom domain. https://my-domain.com

<!-- gh-comment-id:3706578479 --> @appflowy commented on GitHub (Jan 3, 2026): @spooky-finn The FQDN should be your custom domain. https://my-domain.com
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#3814
No description provided.