This repository was archived by the owner on Apr 28, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7979REFLEX_ASSETS_CDN = "https://web.reflex-assets.dev/"
8080
8181# Reflex Cloud Backend
82- RX_CLOUD_BACKEND = os .getenv ("RX_CLOUD_BACKEND" , "https://build.reflex.dev/" )
83- RX_BUILD_BACKEND = os .getenv ("RX_BUILD_BACKEND" , "https://build.reflex.dev/" )
82+ RX_BUILD_BACKEND = os .getenv ("RX_BUILD_BACKEND" , "https://build.reflex.dev/api/" )
8483
8584# Stats
8685GITHUB_STARS = 28000
Original file line number Diff line number Diff line change 66
77async def fetch_all_templates () -> list [dict ]:
88 client = default_client ()
9- async with client .get (f"{ BASE_URL } /api/v1/flexgen/templates/details" ) as resp :
9+ async with client .get (
10+ f"{ BASE_URL .rstrip ('/' )} /v1/flexgen/templates/details"
11+ ) as resp :
1012 resp .raise_for_status ()
1113 return await resp .json ()
1214
1315
1416async def fetch_template_detail (template_id : str ) -> dict :
1517 client = default_client ()
16- async with client .get (f"{ BASE_URL } /api/v1/flexgen/templates/{ template_id } " ) as resp :
18+ async with client .get (
19+ f"{ BASE_URL .rstrip ('/' )} /v1/flexgen/templates/{ template_id } "
20+ ) as resp :
1721 resp .raise_for_status ()
1822 return await resp .json ()
You can’t perform that action at this time.
0 commit comments