eptm_dashboard/rxconfig.py
2026-05-11 14:45:42 +02:00

24 lines
792 B
Python

import os
import reflex as rx
from reflex_base.plugins.sitemap import SitemapPlugin
config = rx.Config(
app_name="eptm_dashboard",
api_url=os.getenv("API_URL", "http://eptm-automation.ch:8000"),
frontend_port=int(os.getenv("FRONTEND_PORT", "3000")),
backend_port=int(os.getenv("BACKEND_PORT", "8000")),
vite_allowed_hosts=True,
plugins=[
rx.plugins.RadixThemesPlugin(
theme=rx.theme(
# Force le mode clair (ignore dark mode OS). Les thèmes de
# couleur user sont gérés via tokens CSS dans responsive.css.
appearance="light",
accent_color="red",
radius="medium",
scaling="95%",
)
),
],
disable_plugins=[SitemapPlugin],
)