{"record":{"id":"50ef4ea9271413fc","repo":"nikivdev/code","slug":"web-path-required-add-web-path-in-flow","errorCode":null,"errorMessage":"Web path required. Add [web] path = \"...\" in flow.toml.","messagePattern":"Web path required\\. Add \\[web\\] path = \"\\.\\.\\.\" in flow\\.toml\\.","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/deploy.rs","lineNumber":2312,"sourceCode":"}\n\nfn ensure_web_config(flow_path: &Path, project_root: &Path, cfg: &Config) -> Result<bool> {\n    let existing_path = cfg.web.as_ref().and_then(|web| web.path.clone());\n    if existing_path.is_some() {\n        return Ok(false);\n    }\n\n    let web_path = match detect_web_path(project_root)? {\n        Some(path) => path,\n        None => {\n            if !std::io::stdin().is_terminal() {\n                bail!(\n                    \"No [web] section found and unable to infer web path. Add [web] path = \\\"...\\\".\"\n                );\n            }\n            let input = prompt_line(\"Web path (relative to repo root)\", None)?;\n            if input.trim().is_empty() {\n                bail!(\"Web path required. Add [web] path = \\\"...\\\" in flow.toml.\");\n            }\n            input\n        }\n    };\n\n    ensure_web_path(flow_path, &web_path)\n}\n\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!(\"-----------------\");","sourceCodeStart":2294,"sourceCodeEnd":2330,"githubUrl":"https://github.com/nikivdev/code/blob/a747e741ae92c09071d0ae946ab48488adcff1ce/src/deploy.rs#L2294-L2330","documentation":"Error \"Web path required. Add [web] path = \"...\" in flow.toml.\" thrown in nikivdev/code.","triggerScenarios":"Thrown at src/deploy.rs:2312 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"}