nikivdev/code · error
No [web] section found and unable to infer web path. Add [we
Error message
No [web] section found and unable to infer web path. Add [web] path = "...".
What it means
Error "No [web] section found and unable to infer web path. Add [web] path = "..."." thrown in nikivdev/code.
Source
Thrown at src/deploy.rs:2306
fn relative_path(project_root: &Path, path: &Path) -> String {
path.strip_prefix(project_root)
.unwrap_or(path)
.to_string_lossy()
.to_string()
}
fn ensure_web_config(flow_path: &Path, project_root: &Path, cfg: &Config) -> Result<bool> {
let existing_path = cfg.web.as_ref().and_then(|web| web.path.clone());
if existing_path.is_some() {
return Ok(false);
}
let web_path = match detect_web_path(project_root)? {
Some(path) => path,
None => {
if !std::io::stdin().is_terminal() {
bail!(
"No [web] section found and unable to infer web path. Add [web] path = \"...\"."
);
}
let input = prompt_line("Web path (relative to repo root)", None)?;
if input.trim().is_empty() {
bail!("Web path required. Add [web] path = \"...\" in flow.toml.");
}
input
}
};
ensure_web_path(flow_path, &web_path)
}
fn ensure_web_domain_or_route(flow_path: &Path, web_cfg: &WebConfig) -> Result<bool> {
if web_cfg.domain.is_some() || web_cfg.route.is_some() {
return Ok(false);
}View on GitHub (pinned to a747e741ae)
When it happens
Trigger: Thrown at src/deploy.rs:2306 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of nikivdev/code@a747e741ae (2026-09-01).
Data as JSON: /api/errors/5ec49a5b5fa2a75e.
Report an issue: GitHub.