message: Use `workers-site` as build_dir if `site` is present
diff: @@ -36,6 +36,8 @@ pub struct Target {
  pub site: Option<Site>,
  }
  +const SITE_BUILD_DIR: &str = "./workers-site";
  +
  impl Target {
  pub fn kv_namespaces(&self) -> Vec<KvNamespace> {
  self.kv_namespaces.clone().unwrap_or_else(Vec::new)
  @@ -48,7 +50,15 @@ impl Target {
  }
  pub fn build_dir(&self) -> Result<PathBuf, std::io::Error> {
  - env::current_dir()
  + let current_dir = env::current_dir()?;
  + // if `site` is configured, we want to isolate worker code
  + // and build artifacts from static site application code.
  + match &self.site {
  + Some(_site_config) => Ok(current_dir.join(
  + SITE_BUILD_DIR.to_string(),
  + )),
  + None => Ok(current_dir),
  + }
  }
  }
  