refactor(urls): the app URL comes from openframe-frontend-core's getDeploymentUrl - #416
Merged
Merged
Conversation
…eploymentUrl [preview:none]
Contributor
🦩 Flamingo Code ReviewNo findings on the current head. Mode: advisory Need another pass? Commits pushed after this review are not reviewed automatically.
Prefer typing? Comment React 👍/👎 on inline comments to teach the reviewer. Started 2026-09-17 01:27 UTC · updated 2026-09-17 01:27 UTC · workflow run |
pavlo-flamingo
approved these changes
Sep 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The app URL now comes from the one implementation in
@flamingo-stack/openframe-frontend-core(0.0.645):getDeploymentUrlinplatform-domains, the same rule the multi-platform hub uses (flamingo-stack/openframe-oss-lib#2219, flamingo-stack/multi-platform-hub#1296).getAppUrl()insrc/lib/utils.tsreplacesgetBaseUrl(),getAssetUrl()andgetMetadataBaseUrl(). It supplies only the platform (openframe-dashboard) and this install's runtimeNEXT_PUBLIC_APP_URL.layout.tsxmetadata (metadataBase,og:url), the platform config (url, logo, OG/Twitter images), asset paths and structured data all use it.runtimeEnv.appUrl()returns''when unset;runtimeEnv.devUrl()is removed.^0.0.640→^0.0.645(0.0.645 removed the lib'sgetBaseUrl).Resolution order (
getAppUrl)'', i.e. relative).NEXT_PUBLIC_APP_URLwhen set: a self-hosted install's own address wins.VERCEL_URL.https://openframe.ai(was the hardcodedhttps://openframe.dev/https://openframe.ai).NEXT_PUBLIC_DEV_URL, elsehttp://localhost:${PORT:-3000}, matchingnpm run dev(waslocalhost:4000).Checks
npm run generate-enums && relay-compiler, thentsc --noEmit: 0 errors.eslint.ci.mjs) and Prettier on the changed files: clean.