Unverified Commit c192f4ec authored by Jiachi Liu's avatar Jiachi Liu Committed by GitHub

turbopack: rename custom cache handler configs (#60828)

Follow up for #57953 for turbopack side

Closes NEXT-2153
parent 2227ae5f
...@@ -78,6 +78,13 @@ pub struct NextConfig { ...@@ -78,6 +78,13 @@ pub struct NextConfig {
pub config_file: Option<String>, pub config_file: Option<String>,
pub config_file_name: String, pub config_file_name: String,
/// In-memory cache size in bytes.
///
/// If `cache_max_memory_size: 0` disables in-memory caching.
pub cache_max_memory_size: Option<f64>,
/// custom path to a cache handler to use
pub cache_handler: Option<String>,
pub env: IndexMap<String, JsonValue>, pub env: IndexMap<String, JsonValue>,
pub experimental: ExperimentalConfig, pub experimental: ExperimentalConfig,
pub images: ImageConfig, pub images: ImageConfig,
...@@ -427,10 +434,6 @@ pub struct ExperimentalConfig { ...@@ -427,10 +434,6 @@ pub struct ExperimentalConfig {
pub client_router_filter_allowed_rate: Option<f64>, pub client_router_filter_allowed_rate: Option<f64>,
pub client_router_filter_redirects: Option<bool>, pub client_router_filter_redirects: Option<bool>,
pub fetch_cache_key_prefix: Option<String>, pub fetch_cache_key_prefix: Option<String>,
/// In-memory cache size in bytes.
///
/// If `isr_memory_cache_size: 0` disables in-memory caching.
pub isr_memory_cache_size: Option<f64>,
pub isr_flush_to_disk: Option<bool>, pub isr_flush_to_disk: Option<bool>,
/// For use with `@next/mdx`. Compile MDX files using the new Rust compiler. /// For use with `@next/mdx`. Compile MDX files using the new Rust compiler.
/// @see https://nextjs.org/docs/app/api-reference/next-config-js/mdxRs /// @see https://nextjs.org/docs/app/api-reference/next-config-js/mdxRs
...@@ -481,8 +484,7 @@ pub struct ExperimentalConfig { ...@@ -481,8 +484,7 @@ pub struct ExperimentalConfig {
force_swc_transforms: Option<bool>, force_swc_transforms: Option<bool>,
fully_specified: Option<bool>, fully_specified: Option<bool>,
gzip_size: Option<bool>, gzip_size: Option<bool>,
/// custom path to a cache handler to use
incremental_cache_handler_path: Option<String>,
instrumentation_hook: Option<bool>, instrumentation_hook: Option<bool>,
large_page_data_bytes: Option<f64>, large_page_data_bytes: Option<f64>,
logging: Option<serde_json::Value>, logging: Option<serde_json::Value>,
......
...@@ -734,7 +734,7 @@ pub async fn render_data( ...@@ -734,7 +734,7 @@ pub async fn render_data(
server_info: server_info.ok(), server_info: server_info.ok(),
allowed_revalidate_header_keys: experimental.allowed_revalidate_header_keys.clone(), allowed_revalidate_header_keys: experimental.allowed_revalidate_header_keys.clone(),
fetch_cache_key_prefix: experimental.fetch_cache_key_prefix.clone(), fetch_cache_key_prefix: experimental.fetch_cache_key_prefix.clone(),
isr_memory_cache_size: experimental.isr_memory_cache_size, isr_memory_cache_size: config.cache_max_memory_size,
isr_flush_to_disk: experimental.isr_flush_to_disk, isr_flush_to_disk: experimental.isr_flush_to_disk,
})?; })?;
Ok(Vc::cell(value)) Ok(Vc::cell(value))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment