Skip to content

Commit

Permalink
use container default
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed Oct 7, 2024
1 parent a29f1bd commit 7db611d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions crates/next-core/src/next_manifests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ impl Default for MiddlewaresManifest {
Serialize,
Deserialize,
)]
#[serde(rename_all = "camelCase")]
#[serde(rename_all = "camelCase", default)]
pub struct MiddlewareMatcher {
// When skipped next.js with fill that during merging.
#[serde(skip_serializing_if = "Option::is_none")]
pub regexp: Option<RcStr>,
#[serde(skip_serializing_if = "bool_is_true", default = "bool_true")]
#[serde(skip_serializing_if = "bool_is_true")]
pub locale: bool,
#[serde(skip_serializing_if = "Option::is_none")]
pub has: Option<Vec<RouteHas>>,
Expand All @@ -87,10 +87,6 @@ fn bool_is_true(b: &bool) -> bool {
*b
}

fn bool_true() -> bool {
true
}

#[derive(Serialize, Default, Debug)]
pub struct EdgeFunctionDefinition {
pub files: Vec<RcStr>,
Expand Down

0 comments on commit 7db611d

Please sign in to comment.