Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
c192f4ec
Unverified
Commit
c192f4ec
authored
Jan 18, 2024
by
Jiachi Liu
Committed by
GitHub
Jan 18, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
turbopack: rename custom cache handler configs (#60828)
Follow up for #57953 for turbopack side Closes NEXT-2153
parent
2227ae5f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
next_config.rs
packages/next-swc/crates/next-core/src/next_config.rs
+8
-6
util.rs
packages/next-swc/crates/next-core/src/util.rs
+1
-1
No files found.
packages/next-swc/crates/next-core/src/next_config.rs
View file @
c192f4ec
...
@@ -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
>
,
...
...
packages/next-swc/crates/next-core/src/util.rs
View file @
c192f4ec
...
@@ -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
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment