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")