Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a sticky Built with Reflex badge #4584

Open
wants to merge 15 commits into
base: main
Choose a base branch
from
Open

Conversation

Lendemor
Copy link
Collaborator

@Lendemor Lendemor commented Jan 2, 2025

To remove the badge, set SHOW_BUILT_WITH_REFLEX=0 in the environment or in rxconfig.py:

import reflex as rx

config = Config(
    "my_app",
    show_built_with_reflex=False,
)

This setting will be respected on run and export for logged in accounts on team and enterprise tier

This setting will be respected on deploy for logged in accounts on pro, team, and enterprise tier.

When the setting is True and the user is not on a high enough tier, error looks like

Warning: Config option `show_built_with_reflex` is restricted. Your current 
subscription tier is `pro`. Please upgrade to ['team', 'enterprise'] to access 
this option.

If the user is not logged in at all, the error looks like:

Warning: Config option `show_built_with_reflex` is restricted. You are currently
logged out. Run `reflex login` to access this option.

Neither of these errors are fatal, the app will just revert to the default show_built_with_reflex=True

@Lendemor Lendemor marked this pull request as ready for review January 16, 2025 20:30
@masenf masenf changed the title Add a watermark badge Add a sticky Build with Reflex badge Jan 24, 2025
@masenf masenf changed the title Add a sticky Build with Reflex badge Add a sticky Built with Reflex badge Jan 24, 2025
imports={"react": "useEffect"},
),
)
is_localhost = is_localhost_cs.value._replace(
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about showing it when --env prod is used ?

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.

2 participants