mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-08-28 10:49:56 +02:00
feat: set default host URL for CLI and simplify deployment error handling
- Added a default value for the `--host-url` option in the CLI to streamline user experience. - Removed the explicit error check for `host_url` in the `deploy` function, allowing for a more flexible deployment process.
This commit is contained in:
@@ -630,6 +630,7 @@ def build(
|
||||
@click.option(
|
||||
"--host-url",
|
||||
envvar="LANGGRAPH_HOST_URL",
|
||||
default="https://api.smith.langchain.com",
|
||||
hidden=True,
|
||||
)
|
||||
@click.option("--image-name", hidden=True)
|
||||
@@ -682,9 +683,6 @@ def deploy(
|
||||
no_wait: bool,
|
||||
docker_build_args: Sequence[str],
|
||||
):
|
||||
if not host_url:
|
||||
raise click.UsageError("Provide --host-url or set LANGGRAPH_HOST_URL")
|
||||
|
||||
config_json = langgraph_cli.config.validate_config_file(config)
|
||||
warn_non_wolfi_distro(config_json)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user