mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-08-20 06:35:46 +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:
committed by
hari-dhanushkodi
parent
05db19dd45
commit
7c758b3f0c
@@ -642,6 +642,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)
|
||||
@@ -694,9 +695,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