{"record":{"id":"0c118da5e70c2071","repo":"nikivdev/code","slug":"web-domain-or-web-route-is-required-to-deploy-web","errorCode":null,"errorMessage":"web.domain or web.route is required to deploy web.","messagePattern":"web\\.domain or web\\.route is required to deploy web\\.","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/deploy.rs","lineNumber":2338,"sourceCode":"\nfn ensure_web_domain_or_route(flow_path: &Path, web_cfg: &WebConfig) -> Result<bool> {\n    if web_cfg.domain.is_some() || web_cfg.route.is_some() {\n        return Ok(false);\n    }\n    if !std::io::stdin().is_terminal() {\n        bail!(\"web.domain or web.route is required in flow.toml.\");\n    }\n\n    println!(\"Web routing setup\");\n    println!(\"-----------------\");\n    let domain = prompt_line(\"Domain (e.g., example.com)\", None)?;\n    if !domain.trim().is_empty() {\n        return ensure_web_key(flow_path, \"domain\", &domain);\n    }\n\n    let route = prompt_line(\"Route (e.g., example.com/*)\", None)?;\n    if route.trim().is_empty() {\n        bail!(\"web.domain or web.route is required to deploy web.\");\n    }\n    ensure_web_key(flow_path, \"route\", &route)\n}\n\nfn ensure_web_env_source(flow_path: &Path, web_cfg: &WebConfig) -> Result<bool> {\n    if web_cfg.env_source.is_some() {\n        return Ok(false);\n    }\n    if !std::io::stdin().is_terminal() {\n        return Ok(false);\n    }\n\n    if prompt_yes_no(\"Use cloud for web env vars?\", true)? {\n        let mut changed = false;\n        if ensure_web_key(flow_path, \"env_source\", \"cloud\")? {\n            changed = true;\n        }\n        if ensure_web_key(flow_path, \"env_apply\", \"always\")? {","sourceCodeStart":2320,"sourceCodeEnd":2356,"githubUrl":"https://github.com/nikivdev/code/blob/a747e741ae92c09071d0ae946ab48488adcff1ce/src/deploy.rs#L2320-L2356","documentation":"Error \"web.domain or web.route is required to deploy web.\" thrown in nikivdev/code.","triggerScenarios":"Thrown at src/deploy.rs:2338 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a747e741ae92c09071d0ae946ab48488adcff1ce","analyzedAt":"2026-09-01T22:43:55.719Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}