Skip to content

Centralize the hardcoded https://flowstar.app site URL #1040

Closed

Description

@Austinaminu2

Description

The production origin is hardcoded in at least five places, so preview/staging deploys generate wrong canonical, OG and share URLs.

Location

app/layout.tsx (lines ~18, ~46), app/sitemap.ts, app/app/stream/[id]/metadata.ts (~23, ~48), app/app/stream/[id]/page.tsx (~798).

Task

Add a single SITE_URL constant (for example in lib/site.ts) that reads NEXT_PUBLIC_SITE_URL and falls back to https://flowstar.app. Use it everywhere and document the variable in .env.local.example.

Acceptance criteria

  • grep -r "flowstar.app" app lib only hits the new constant
  • npm run lint, npm run typecheck and npm test pass

Good for contributors because

Mechanical find-and-replace that touches several parts of the app.

Activity

  1. Imole-loj commented on Oct 19, 2026

    @Imole-loj

    @Imole-loj has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

    Please assign this issue to me

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @Imole-loj to this issue.

  2. added
    Stellar WaveIssues in the Stellar wave program
    and removed
    Stellar WaveIssues in the Stellar wave program
    on Oct 19, 2026
  3. Amksongs commented on Oct 19, 2026

    @Amksongs

    @Amksongs has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

    Hello maintainer, i would like to work on this issue

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @Amksongs to this issue.

  4. VeronicDev commented on Oct 19, 2026

    @VeronicDev

    @VeronicDev has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

    Hello Maintainer, I can fix this please assign.

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @VeronicDev to this issue.

  5. dee-john commented on Oct 19, 2026

    @dee-john

    @dee-john has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

    i’m very conversant in solving problems like this, let me work on it

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @dee-john to this issue.

  6. Wittig18 commented on Oct 19, 2026

    @Wittig18

    @Wittig18 has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

    hey maintainer, i would love to work on this

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @Wittig18 to this issue.

  7. Marywase commented on Oct 19, 2026

    @Marywase

    @Marywase has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

    Good day maintainer
    I’d definitely love to work on this issue Kindly assign, thanks

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @Marywase to this issue.

  8. moon-code12 commented on Oct 19, 2026

    @moon-code12

    @moon-code12 has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

    Hello Maintainers, I would like to express my interest in working on this issue. I have reviewed the issue description and understand the problem that needs to be addressed. My approach will be to investigate the existing codebase, identify the root cause, and implement a solution that follows the project's existing architecture and coding standards.

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @moon-code12 to this issue.

  9. Daveamhs commented on Oct 19, 2026

    @Daveamhs

    @Daveamhs has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

    Hi Maintainer,
    I'd like to work on this issue because I'm interested in improving code maintainability, deployment flexibility, and configuration management in Next.js applications.
    I have experience with JavaScript, TypeScript, React, frontend development, Git/GitHub, and contributing to open-source projects.
    For this issue, I'll create a centralized SITE_URL constant using NEXT_PUBLIC_SITE_URL with the production URL as a fallback, replace the hardcoded URLs across the affected files, and document the environment variable in .env.local.example.
    I'd appreciate the opportunity to contribute. Thank you!

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @Daveamhs to this issue.

  10. darcszn commented on Oct 19, 2026

    @darcszn
    Contributor

    @darcszn has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

    Hi there, I've studied this issue and will like to solve it
    kindly assign me. thank you.

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @darcszn to this issue.

  11. drips-wave commented on Oct 19, 2026

    @drips-wave

    Congratulations, @darcszn! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on October 22, 2026.

    🧑‍💻 @darcszn: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.

    Warning

    When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.

    🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.

    🌊 Happy Wave 🌊

  12. added a commit that references this issue on Oct 19, 2026
  13. added a commit that references this issue on Oct 19, 2026
  14. grantfox-oss commented on Oct 19, 2026

    @grantfox-oss

    🎉 This issue has been marked as completed on GrantFox!

    @darcszn's PR #1062 was approved and merged by @Austinaminu2.

    🏆 @darcszn: You earned 40 FoxPoints for this contribution! Your current tier: Builder (1,945 total points). Track your full progress on GrantFox.

    👏 Great work, @darcszn! Keep contributing to FlowwStar.

  15. drips-wave commented on Oct 19, 2026

    @drips-wave

    This issue has been completed by @darcszn as part of the Stellar Wave Program's 10th Wave 🥳

    😎 @darcszn: You earned 200 Points for completing this issue! Once the Wave's rewards are finalized, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.

    🧑‍💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions