Skip to content

Commit 762d975

Browse files
authored
Allow any user to set show_built_with_reflex=False in any mode (#4847)
1 parent 405872a commit 762d975

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

reflex/reflex.py

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323
cli = typer.Typer(add_completion=False, pretty_exceptions_enable=False)
2424

2525

26-
SHOW_BUILT_WITH_REFLEX_INFO = "https://reflex.dev/docs/hosting/reflex-branding/"
27-
2826
# Get the config.
2927
config = get_config()
3028

@@ -193,15 +191,6 @@ def _run(
193191
prerequisites.check_latest_package_version(constants.Reflex.MODULE_NAME)
194192

195193
if frontend:
196-
if config.show_built_with_reflex is False:
197-
# The sticky badge may be disabled at runtime for team/enterprise tiers.
198-
prerequisites.check_config_option_in_tier(
199-
option_name="show_built_with_reflex",
200-
allowed_tiers=["team", "enterprise"],
201-
fallback_value=True,
202-
help_link=SHOW_BUILT_WITH_REFLEX_INFO,
203-
)
204-
205194
# Get the app module.
206195
prerequisites.get_compiled_app()
207196

@@ -358,15 +347,6 @@ def export(
358347
if prerequisites.needs_reinit(frontend=frontend or not backend):
359348
_init(name=config.app_name, loglevel=loglevel)
360349

361-
if frontend and config.show_built_with_reflex is False:
362-
# The sticky badge may be disabled on export for team/enterprise tiers.
363-
prerequisites.check_config_option_in_tier(
364-
option_name="show_built_with_reflex",
365-
allowed_tiers=["team", "enterprise"],
366-
fallback_value=True,
367-
help_link=SHOW_BUILT_WITH_REFLEX_INFO,
368-
)
369-
370350
export_utils.export(
371351
zipping=zipping,
372352
frontend=frontend,
@@ -563,15 +543,6 @@ def deploy(
563543

564544
environment.REFLEX_COMPILE_CONTEXT.set(constants.CompileContext.DEPLOY)
565545

566-
if not config.show_built_with_reflex:
567-
# The sticky badge may be disabled on deploy for pro/team/enterprise tiers.
568-
prerequisites.check_config_option_in_tier(
569-
option_name="show_built_with_reflex",
570-
allowed_tiers=["pro", "team", "enterprise"],
571-
fallback_value=True,
572-
help_link=SHOW_BUILT_WITH_REFLEX_INFO,
573-
)
574-
575546
# Set the log level.
576547
console.set_log_level(loglevel)
577548

0 commit comments

Comments
 (0)