joshnavip's picture
Initial commit: AI code detection project (without binary files)
b144cb7
import os
import reflex as rx
# Render sets this for web services so the compiled client targets the live API.
_render_base = os.environ.get("RENDER_EXTERNAL_URL", "").rstrip("/")
_config_kw: dict = {
"app_name": "reflex_ui",
"telemetry_enabled": False,
"disable_plugins": ["reflex.plugins.sitemap.SitemapPlugin"],
}
if _render_base:
_config_kw["api_url"] = _render_base
_config_kw["deploy_url"] = _render_base
config = rx.Config(**_config_kw)