update URL to prod URL

This commit is contained in:
Abi Raja 2023-12-19 11:45:19 -05:00
parent 1a5f05d574
commit c3b7ff7246
2 changed files with 4 additions and 4 deletions

View File

@ -23,8 +23,8 @@ async def send_to_saas_backend(
):
if IS_PROD:
async with httpx.AsyncClient() as client:
# url = "https://screenshot-to-code-saas.onrender.com/generations/store"
url = "http://localhost:8001/generations/store"
url = "https://screenshot-to-code-saas.onrender.com/generations/store"
# url = "http://localhost:8001/generations/store"
data = json.dumps(
{

View File

@ -10,8 +10,8 @@ async def does_user_have_subscription_credits(
auth_token: str,
):
async with httpx.AsyncClient() as client:
# url = "https://screenshot-to-code-saas.onrender.com/credits/has_credits"
url = "http://localhost:8001/credits/has_credits"
url = "https://screenshot-to-code-saas.onrender.com/credits/has_credits"
# url = "http://localhost:8001/credits/has_credits"
headers = {
"Content-Type": "application/json",