fn warn_site_incompatible_route(deploy_config: &DeployConfig) {
    if let DeployConfig::Zoned(zoned) = &deploy_config {
        let mut no_star_routes = Vec::new();
        for route in &zoned.routes {
            if !route.pattern.ends_with('*') {
                no_star_routes.push(route.pattern.to_string());
            }
        }

        if !no_star_routes.is_empty() {
            StdOut::warn(&format!(
                "The following routes in your configuration file should have a trailing * to apply the Worker on every path, otherwise your site will not behave as expected.\n{}",
                no_star_routes.join("\n"))
            );
        }
    }
}
// This checks all of the configured routes for the wildcard ending and warns
// the user that their site may not work as expected without it.
This checks all of the configured routes for the wildcard ending and warns
the user that their site may not work as expected without it.
This checks all of the configured routes for the wildcard ending and warns the user that their site may not work as expected without it .
fn warn_site_incompatible_route(deploy_config: &DeployConfig) {
    if let DeployConfig::Zoned(zoned) = &deploy_config {
        let mut no_star_routes = Vec::new();
        for route in &zoned.routes {
            if !route.pattern.ends_with('*') {
                no_star_routes.push(route.pattern.to_string());
            }
        }
        if !no_star_routes.is_empty() {
            StdOut::warn(&format!(
                "The following routes in your configuration file should have a trailing * to apply the Worker on every path, otherwise your site will not behave as expected.\n{}",
                no_star_routes.join("\n"))
            );
        }
    }
}
fn warn_site_incompatible_route ( deploy_config : & DeployConfig ) { if let DeployConfig :: Zoned ( zoned ) = & deploy_config { let mut no_star_routes = Vec :: new ( ) ; for route in & zoned . routes { if ! route . pattern . ends_with ( '*' ) { no_star_routes . push ( route . pattern . to_string ( ) ) ; } } if ! no_star_routes . is_empty ( ) { StdOut :: warn ( & format ! ( " \n " no_star_routes join ( " \n " ) ) ) ; } } }
This checks all of the configured routes for the wildcard ending and warns
the user that their site may not work as expected without it.
This checks all of the configured routes for the wildcard ending and warns the user that their site may not work as expected without it .
deploy_config
&DeployConfig