next_build/
build_options.rs1use std::path::PathBuf;
2
3use next_core::next_config::Rewrites;
4use turbopack_core::issue::IssueSeverity;
5
6#[derive(Clone, Debug)]
7pub struct BuildOptions {
8 pub root: Option<PathBuf>,
10
11 pub dir: Option<PathBuf>,
13
14 pub dist_dir: Option<String>,
16
17 pub memory_limit: Option<usize>,
19
20 pub log_level: Option<IssueSeverity>,
22
23 pub show_all: bool,
25
26 pub log_detail: bool,
28
29 pub full_stats: bool,
31
32 pub build_context: Option<BuildContext>,
34
35 pub define_env: DefineEnv,
36}
37
38#[derive(Clone, Debug)]
39pub struct BuildContext {
40 pub build_id: String,
42
43 pub rewrites: Rewrites,
45}
46
47#[derive(Debug, Clone)]
48pub struct DefineEnv {
49 pub client: Vec<(String, String)>,
50 pub edge: Vec<(String, String)>,
51 pub nodejs: Vec<(String, String)>,
52}