use std::path::PathBuf; use next_core::next_config::Rewrites; use turbo_rcstr::RcStr; use turbopack_core::issue::IssueSeverity; #[derive(Clone, Debug)] pub struct BuildOptions { /// The root directory of the workspace. pub root: Option, /// The project's directory. pub dir: Option, /// next.config.js's distDir. pub dist_dir: Option, /// The maximum memory to use for the build. pub memory_limit: Option, /// The log level to use for the build. pub log_level: Option, /// Whether to show all logs. pub show_all: bool, /// Whether to show detailed logs. pub log_detail: bool, /// Whether to compute full stats. pub full_stats: bool, /// The Next.js build context. pub build_context: Option, pub define_env: DefineEnv, } #[derive(Clone, Debug)] pub struct BuildContext { /// The build id. pub build_id: String, /// Next.js config rewrites. pub rewrites: Rewrites, } #[derive(Debug, Clone)] pub struct DefineEnv { pub client: Vec<(RcStr, Option)>, pub edge: Vec<(RcStr, Option)>, pub nodejs: Vec<(RcStr, Option)>, }