From a394913aa7a782088238104f0c6a82720c536721 Mon Sep 17 00:00:00 2001 From: badayvedat Date: Thu, 18 Jan 2024 14:06:19 +0300 Subject: [PATCH] chore: move to new fal run url --- projects/fal/src/fal/cli.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/projects/fal/src/fal/cli.py b/projects/fal/src/fal/cli.py index f3f59752..3fdc1920 100644 --- a/projects/fal/src/fal/cli.py +++ b/projects/fal/src/fal/cli.py @@ -300,18 +300,14 @@ def register_application( ) if id: - # TODO: should we centralize this URL format? - gateway_host = host.url.replace("api.", "gateway.") - gateway_host = remove_http_and_port_from_url(gateway_host) - if alias: console.print( f"Registered a new revision for function '{alias}' (revision='{id}')." ) - console.print(f"URL: https://{user_id}-{alias}.{gateway_host}") + console.print(f"URL: https://fal.run/{user_id}/{alias}") else: console.print(f"Registered anonymous function '{id}'.") - console.print(f"URL: https://{user_id}-{id}.{gateway_host}") + console.print(f"URL: https://fal.run/{user_id}/{id}") @function_cli.command("run")