Skip to content
This repository was archived by the owner on Apr 28, 2026. It is now read-only.

Commit 632d9e2

Browse files
committed
update build backend endpoint
2 parents fa754ad + 222f7e5 commit 632d9e2

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

pcweb/constants.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,7 @@
7979
REFLEX_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
8685
GITHUB_STARS = 28000

pcweb/pages/templates/templates_client.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,17 @@
66

77
async 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

1416
async 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()

0 commit comments

Comments
 (0)