Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(next-dev): align devserver cli options to napi bindings #2653

Merged
merged 1 commit into from Nov 12, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
15 changes: 10 additions & 5 deletions crates/next-dev/src/devserver_options.rs
Expand Up @@ -66,18 +66,23 @@ pub struct DevServerOptions {
pub log_detail: bool,

// Inherited options from next-dev, need revisit later.
// These are not supported by CLI yet.
#[cfg(feature = "serializable")]
#[cfg_attr(feature = "cli", clap(long))]
#[cfg_attr(feature = "serializable", serde(default))]
/// If port is not explicitly specified, use different port if it's already
/// in use.
pub allow_retry: bool,
#[cfg(feature = "serializable")]
#[cfg_attr(feature = "cli", clap(long))]
#[cfg_attr(feature = "serializable", serde(default))]
/// Internal for next.js, no specific usage yet.
pub dev: bool,
#[cfg(feature = "serializable")]
#[cfg_attr(feature = "cli", clap(long))]
#[cfg_attr(feature = "serializable", serde(default))]
/// Internal for next.js, no specific usage yet.
pub is_next_dev_command: bool,
#[cfg(feature = "serializable")]
#[cfg_attr(feature = "cli", clap(long))]
#[cfg_attr(feature = "serializable", serde(default))]
/// Specify server component external packages explicitly. This is an
/// experimental flag.
pub server_components_external_packages: Vec<String>,
}

Expand Down