next_build/
build_options.rs1use std::path::PathBuf;
2
3use next_core::next_config::Rewrites;
4use turbo_rcstr::RcStr;
5use turbopack_core::issue::IssueSeverity;
6
7#[derive(Clone, Debug)]
8pub struct BuildOptions {
9 pub root: Option<PathBuf>,
11
12 pub dir: Option<PathBuf>,
14
15 pub dist_dir: Option<String>,
17
18 pub memory_limit: Option<usize>,
20
21 pub log_level: Option<IssueSeverity>,
23
24 pub show_all: bool,
26
27 pub log_detail: bool,
29
30 pub full_stats: bool,
32
33 pub build_context: Option<BuildContext>,
35
36 pub define_env: DefineEnv,
37}
38
39#[derive(Clone, Debug)]
40pub struct BuildContext {
41 pub build_id: String,
43
44 pub rewrites: Rewrites,
46}
47
48#[derive(Debug, Clone)]
49pub struct DefineEnv {
50 pub client: Vec<(RcStr, Option<RcStr>)>,
51 pub edge: Vec<(RcStr, Option<RcStr>)>,
52 pub nodejs: Vec<(RcStr, Option<RcStr>)>,
53}