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
3aad67b7
Unverified
Commit
3aad67b7
authored
Jan 16, 2026
by
Jiachi Liu
Committed by
GitHub
Jan 16, 2026
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: server action logging (#88277)
parent
43460b17
Hide whitespace changes
Inline
Side-by-side
Showing
120 changed files
with
885 additions
and
177 deletions
+885
-177
module_graph.rs
crates/next-api/src/module_graph.rs
+8
-3
server_actions.rs
crates/next-api/src/server_actions.rs
+85
-15
mod.rs
crates/next-core/src/next_manifests/mod.rs
+8
-0
server_actions.rs
...s/next-custom-transforms/src/transforms/server_actions.rs
+30
-17
output.js
...orms/tests/errors/server-actions/server-graph/8/output.js
+1
-1
output.js
...ests/fixture/next-font-with-directive/use-cache/output.js
+1
-1
output.js
...sts/fixture/next-font-with-directive/use-server/output.js
+1
-1
output.js
...re/react-server-components/client-graph/actions/output.js
+1
-1
output.js
...react-server-components/client-graph/cache-life/output.js
+1
-1
output.js
.../react-server-components/client-graph/cache-tag/output.js
+1
-1
output.js
...rms/tests/fixture/server-actions/client-graph/1/output.js
+1
-1
output.js
...ms/tests/fixture/server-actions/client-graph/10/output.js
+1
-1
output.js
...ms/tests/fixture/server-actions/client-graph/11/output.js
+1
-1
output.js
...ms/tests/fixture/server-actions/client-graph/12/output.js
+1
-1
output.js
...ms/tests/fixture/server-actions/client-graph/13/output.js
+1
-1
output.js
...ms/tests/fixture/server-actions/client-graph/14/output.js
+1
-1
output.js
...ms/tests/fixture/server-actions/client-graph/15/output.js
+1
-1
output.js
...ms/tests/fixture/server-actions/client-graph/16/output.js
+1
-1
output.js
...rms/tests/fixture/server-actions/client-graph/2/output.js
+1
-1
output.js
...rms/tests/fixture/server-actions/client-graph/3/output.js
+1
-1
output.js
...rms/tests/fixture/server-actions/client-graph/4/output.js
+1
-1
output.js
...rms/tests/fixture/server-actions/client-graph/5/output.js
+1
-1
output.js
...rms/tests/fixture/server-actions/client-graph/6/output.js
+1
-1
output.js
...rms/tests/fixture/server-actions/client-graph/7/output.js
+1
-1
output.js
...rms/tests/fixture/server-actions/client-graph/8/output.js
+1
-1
output.js
...rms/tests/fixture/server-actions/client-graph/9/output.js
+1
-1
output.js
...fixture/server-actions/client-graph/turbopack/1/output.js
+2
-2
output.js
...rms/tests/fixture/server-actions/server-graph/1/output.js
+1
-1
output.js
...ms/tests/fixture/server-actions/server-graph/10/output.js
+1
-1
output.js
...ms/tests/fixture/server-actions/server-graph/11/output.js
+1
-1
output.js
...ms/tests/fixture/server-actions/server-graph/12/output.js
+1
-1
output.js
...ms/tests/fixture/server-actions/server-graph/13/output.js
+1
-1
output.js
...ms/tests/fixture/server-actions/server-graph/14/output.js
+1
-1
output.js
...ms/tests/fixture/server-actions/server-graph/15/output.js
+1
-1
output.js
...ms/tests/fixture/server-actions/server-graph/16/output.js
+1
-1
output.js
...ms/tests/fixture/server-actions/server-graph/17/output.js
+1
-1
output.js
...ms/tests/fixture/server-actions/server-graph/18/output.js
+1
-1
output.js
...ms/tests/fixture/server-actions/server-graph/19/output.js
+1
-1
output.js
...rms/tests/fixture/server-actions/server-graph/2/output.js
+1
-1
output.js
...ms/tests/fixture/server-actions/server-graph/20/output.js
+1
-1
output.js
...ms/tests/fixture/server-actions/server-graph/21/output.js
+1
-1
output.js
...ms/tests/fixture/server-actions/server-graph/22/output.js
+1
-1
output.js
...ms/tests/fixture/server-actions/server-graph/23/output.js
+1
-1
output.js
...ms/tests/fixture/server-actions/server-graph/24/output.js
+1
-1
output.js
...ms/tests/fixture/server-actions/server-graph/25/output.js
+1
-1
output.js
...ms/tests/fixture/server-actions/server-graph/26/output.js
+1
-1
output.js
...ms/tests/fixture/server-actions/server-graph/27/output.js
+1
-1
output.js
...ms/tests/fixture/server-actions/server-graph/28/output.js
+1
-1
output.js
...ms/tests/fixture/server-actions/server-graph/29/output.js
+1
-1
output.js
...rms/tests/fixture/server-actions/server-graph/3/output.js
+1
-1
output.js
...ms/tests/fixture/server-actions/server-graph/30/output.js
+1
-1
output.js
...ms/tests/fixture/server-actions/server-graph/31/output.js
+1
-1
output.js
...ms/tests/fixture/server-actions/server-graph/32/output.js
+1
-1
output.js
...ms/tests/fixture/server-actions/server-graph/33/output.js
+1
-1
output.js
...ms/tests/fixture/server-actions/server-graph/34/output.js
+1
-1
output.js
...ms/tests/fixture/server-actions/server-graph/35/output.js
+1
-1
output.js
...ms/tests/fixture/server-actions/server-graph/36/output.js
+1
-1
output.js
...ms/tests/fixture/server-actions/server-graph/37/output.js
+1
-1
output.js
...ms/tests/fixture/server-actions/server-graph/38/output.js
+1
-1
output.js
...ms/tests/fixture/server-actions/server-graph/39/output.js
+1
-1
output.js
...rms/tests/fixture/server-actions/server-graph/4/output.js
+1
-1
output.js
...ms/tests/fixture/server-actions/server-graph/40/output.js
+1
-1
output.js
...ms/tests/fixture/server-actions/server-graph/41/output.js
+1
-1
output.js
...ms/tests/fixture/server-actions/server-graph/42/output.js
+1
-1
output.js
...ms/tests/fixture/server-actions/server-graph/43/output.js
+1
-1
output.js
...ms/tests/fixture/server-actions/server-graph/44/output.js
+1
-1
output.js
...ms/tests/fixture/server-actions/server-graph/45/output.js
+1
-1
output.js
...ms/tests/fixture/server-actions/server-graph/46/output.js
+1
-1
output.js
...ms/tests/fixture/server-actions/server-graph/47/output.js
+1
-1
output.js
...ms/tests/fixture/server-actions/server-graph/48/output.js
+1
-1
output.js
...ms/tests/fixture/server-actions/server-graph/49/output.js
+1
-1
output.js
...rms/tests/fixture/server-actions/server-graph/5/output.js
+1
-1
output.js
...ms/tests/fixture/server-actions/server-graph/50/output.js
+1
-1
output.js
...ms/tests/fixture/server-actions/server-graph/51/output.js
+1
-1
output.js
...ms/tests/fixture/server-actions/server-graph/52/output.js
+1
-1
output.js
...ms/tests/fixture/server-actions/server-graph/53/output.js
+1
-1
output.js
...ms/tests/fixture/server-actions/server-graph/54/output.js
+1
-1
output.js
...ms/tests/fixture/server-actions/server-graph/55/output.js
+1
-1
output.js
...ms/tests/fixture/server-actions/server-graph/56/output.js
+1
-1
output.js
...ms/tests/fixture/server-actions/server-graph/57/output.js
+1
-1
output.js
...ms/tests/fixture/server-actions/server-graph/58/output.js
+1
-1
output.js
...ms/tests/fixture/server-actions/server-graph/59/output.js
+1
-1
output.js
...rms/tests/fixture/server-actions/server-graph/6/output.js
+1
-1
output.ts
...ms/tests/fixture/server-actions/server-graph/60/output.ts
+1
-1
output.js
...ms/tests/fixture/server-actions/server-graph/61/output.js
+1
-1
output.ts
...ms/tests/fixture/server-actions/server-graph/62/output.ts
+1
-1
output.tsx
...s/tests/fixture/server-actions/server-graph/63/output.tsx
+1
-1
output.js
...ms/tests/fixture/server-actions/server-graph/64/output.js
+1
-1
output.js
...ms/tests/fixture/server-actions/server-graph/65/output.js
+1
-1
output.js
...ms/tests/fixture/server-actions/server-graph/66/output.js
+1
-1
output.js
...ms/tests/fixture/server-actions/server-graph/67/output.js
+1
-1
output.tsx
...s/tests/fixture/server-actions/server-graph/68/output.tsx
+1
-1
output.js
...rms/tests/fixture/server-actions/server-graph/7/output.js
+1
-1
output.js
...ms/tests/fixture/server-actions/server-graph/70/output.js
+1
-1
output.js
...ms/tests/fixture/server-actions/server-graph/71/output.js
+1
-1
output.js
...rms/tests/fixture/server-actions/server-graph/8/output.js
+1
-1
output.js
...rms/tests/fixture/server-actions/server-graph/9/output.js
+1
-1
output.js
...-maps/client-graph/development/server-actions/1/output.js
+1
-1
output.js
...e-maps/client-graph/production/server-actions/1/output.js
+1
-1
output.js
...ts/fixture/source-maps/server-graph/use-cache/1/output.js
+1
-1
output.js
...opack/client-graph/development/server-actions/1/output.js
+8
-8
output.js
...bopack/client-graph/production/server-actions/1/output.js
+8
-8
get-page-static-info.ts
packages/next/src/build/analysis/get-page-static-info.ts
+5
-2
get-module-build-info.ts
...s/next/src/build/webpack/loaders/get-module-build-info.ts
+18
-1
next-flight-client-module-loader.ts
...build/webpack/loaders/next-flight-client-module-loader.ts
+4
-1
flight-client-entry-plugin.ts
...t/src/build/webpack/plugins/flight-client-entry-plugin.ts
+29
-11
action-handler.ts
packages/next/src/server/app-render/action-handler.ts
+46
-1
segment-explorer-path.ts
packages/next/src/server/app-render/segment-explorer-path.ts
+47
-12
log-requests.ts
packages/next/src/server/dev/log-requests.ts
+12
-1
server-action-logger.ts
packages/next/src/server/dev/server-action-logger.ts
+38
-0
request-meta.ts
packages/next/src/server/request-meta.ts
+10
-0
action-buttons.js
test/e2e/app-dir/server-action-logging/app/action-buttons.js
+116
-0
actions.js
test/e2e/app-dir/server-action-logging/app/actions.js
+50
-0
button.js
test/e2e/app-dir/server-action-logging/app/inline/button.js
+21
-0
page.js
test/e2e/app-dir/server-action-logging/app/inline/page.js
+15
-0
layout.js
test/e2e/app-dir/server-action-logging/app/layout.js
+7
-0
not-found.js
test/e2e/app-dir/server-action-logging/app/not-found.js
+3
-0
page.js
test/e2e/app-dir/server-action-logging/app/page.js
+28
-0
page.js
...app-dir/server-action-logging/app/redirect-target/page.js
+3
-0
server-action-logging.test.ts
...p-dir/server-action-logging/server-action-logging.test.ts
+189
-0
No files found.
crates/next-api/src/module_graph.rs
View file @
3aad67b7
...
...
@@ -30,7 +30,9 @@ use turbopack_css::{CssModuleAsset, ModuleCssAsset};
use
crate
::{
client_references
::{
ClientManifestEntryType
,
ClientReferenceData
,
map_client_references
},
dynamic_imports
::{
DynamicImportEntries
,
DynamicImportEntriesMapType
,
map_next_dynamic
},
server_actions
::{
AllActions
,
AllModuleActions
,
map_server_actions
,
to_rsc_context
},
server_actions
::{
ActionMeta
,
AllActions
,
AllModuleActions
,
map_server_actions
,
to_rsc_context
,
},
};
#[turbo_tasks
::
value]
...
...
@@ -374,12 +376,15 @@ impl ServerActionsGraph {
actions
.actions
.iter
()
.map
(
async
|(
hash
,
name
)|
{
.map
(
async
|(
hash
,
entry
)|
{
Ok
((
hash
.to_string
(),
(
*
layer
,
name
.to_string
(),
ActionMeta
{
name
:
entry
.name
.clone
(),
source_path
:
actions
.entry_path
.clone
(),
},
if
*
layer
==
ActionLayer
::
Rsc
{
*
module
}
else
{
...
...
crates/next-api/src/server_actions.rs
View file @
3aad67b7
use
std
::{
collections
::
BTreeMap
,
io
::
Write
};
use
anyhow
::{
Context
,
Result
,
bail
};
use
bincode
::{
Decode
,
Encode
};
use
next_core
::{
next_manifests
::{
ActionLayer
,
ActionManifestModuleId
,
ActionManifestWorkerEntry
,
ServerReferenceManifest
,
...
...
@@ -19,7 +20,9 @@ use swc_core::{
},
};
use
turbo_rcstr
::{
RcStr
,
rcstr
};
use
turbo_tasks
::{
FxIndexMap
,
ResolvedVc
,
TryFlatJoinIterExt
,
Vc
};
use
turbo_tasks
::{
FxIndexMap
,
NonLocalValue
,
ResolvedVc
,
TryFlatJoinIterExt
,
Vc
,
trace
::
TraceRawVcs
,
};
use
turbo_tasks_fs
::{
self
,
File
,
FileContent
,
FileSystemPath
,
rope
::
RopeBuilder
};
use
turbopack_core
::{
asset
::
AssetContent
,
...
...
@@ -42,6 +45,9 @@ use turbopack_ecmascript::{
tree_shake
::
asset
::
EcmascriptModulePartAsset
,
};
/// Metadata for a server action: (layer, exported_name, filename)
type
ActionMetadata
=
(
ActionLayer
,
String
,
String
);
#[turbo_tasks
::
value]
pub
(
crate
)
struct
ServerActionsManifest
{
pub
loader
:
ResolvedVc
<
Box
<
dyn
EvaluatableAsset
>>
,
...
...
@@ -112,11 +118,12 @@ pub(crate) async fn build_server_actions_loader(
// hashed ID as export name.
let
mut
contents
=
RopeBuilder
::
from
(
""
);
let
mut
import_map
=
FxIndexMap
::
default
();
for
(
hash_id
,
(
_layer
,
name
,
module
))
in
actions
.iter
()
{
for
(
hash_id
,
(
_layer
,
meta
,
module
))
in
actions
.iter
()
{
let
index
=
import_map
.len
();
let
module_name
=
import_map
.entry
(
*
module
)
.or_insert_with
(||
format!
(
"ACTIONS_MODULE{index}"
)
.into
());
let
name
=
&
meta
.name
;
writeln!
(
contents
,
"export {{{name} as '{hash_id}'}} from '{module_name}'"
...
...
@@ -177,14 +184,19 @@ async fn build_manifest(
NextRuntime
::
NodeJs
=>
&
mut
manifest
.node
,
};
// Collect all the action metadata including filenames
let
mut
action_metadata
:
Vec
<
(
String
,
(
ActionLayer
,
String
,
String
))
>
=
Vec
::
new
();
for
(
hash_id
,
(
layer
,
name
,
module
))
in
actions_value
.iter
()
{
// Get the module path and use the full path
let
module_path
=
module
.ident
()
.path
()
.await
?
;
let
full_path
=
module_path
.to_string
();
// Collect all the action metadata including filenames and location
let
mut
action_metadata
:
Vec
<
(
String
,
ActionMetadata
)
>
=
Vec
::
new
();
for
(
hash_id
,
(
layer
,
meta
,
module
))
in
actions_value
.iter
()
{
// Use source_path from the action comment if available (contains original .ts/.tsx path),
// otherwise fall back to module.ident().path() (may be compiled .js path)
let
filename
=
if
!
meta
.source_path
.is_empty
()
{
meta
.source_path
.clone
()
}
else
{
let
module_path
=
module
.ident
()
.path
()
.await
?
;
module_path
.to_string
()
};
action_metadata
.push
((
hash_id
.clone
(),
(
*
layer
,
name
.clone
(),
full_path
)));
action_metadata
.push
((
hash_id
.clone
(),
(
*
layer
,
meta
.name
.clone
(),
filename
)));
}
// Now create the manifest entries
...
...
@@ -250,6 +262,31 @@ pub async fn to_rsc_context(
Ok
(
module
)
}
/// Server action info for JSON parsing
#[derive(Clone,
Debug,
serde
::
Deserialize)]
#[serde(untagged)]
enum
ServerActionInfoRaw
{
/// Old format: just the export name as a string
Name
(
String
),
/// New format: object with name
WithName
{
name
:
String
},
}
impl
ServerActionInfoRaw
{
fn
into_action_entry
(
self
)
->
ActionEntry
{
match
self
{
ServerActionInfoRaw
::
Name
(
name
)
=>
ActionEntry
{
name
},
ServerActionInfoRaw
::
WithName
{
name
}
=>
ActionEntry
{
name
},
}
}
}
/// Simplified action entry for storage in turbo_tasks values
#[derive(Clone,
Debug,
PartialEq,
Eq,
TraceRawVcs,
NonLocalValue,
Encode,
Decode)]
pub
struct
ActionEntry
{
pub
name
:
String
,
}
/// Parses the Server Actions comment for all exported action function names.
///
/// Action names are stored in a leading BlockComment prefixed by
...
...
@@ -257,7 +294,7 @@ pub async fn to_rsc_context(
pub
fn
parse_server_actions
(
program
:
&
Program
,
comments
:
&
dyn
Comments
,
)
->
Option
<
(
BTreeMap
<
String
,
String
>
,
String
,
String
)
>
{
)
->
Option
<
(
BTreeMap
<
String
,
ActionEntry
>
,
String
,
String
)
>
{
let
byte_pos
=
match
program
{
Program
::
Module
(
m
)
=>
m
.span.lo
,
Program
::
Script
(
s
)
=>
s
.span.lo
,
...
...
@@ -266,7 +303,29 @@ pub fn parse_server_actions(
comments
.iter
()
.find_map
(|
c
|
{
c
.text
.split_once
(
"__next_internal_action_entry_do_not_use__"
)
.and_then
(|(
_
,
actions
)|
serde_json
::
from_str
(
actions
)
.ok
())
.and_then
(|(
_
,
actions
)|
{
// Try to parse as tuple format: (actions_map, entry_path, entry_query)
if
let
Ok
((
raw
,
entry_path
,
entry_query
))
=
serde_json
::
from_str
::
<
(
BTreeMap
<
String
,
ServerActionInfoRaw
>
,
String
,
String
,
)
>
(
actions
)
{
let
converted
:
BTreeMap
<
String
,
ActionEntry
>
=
raw
.into_iter
()
.map
(|(
k
,
v
)|
(
k
,
v
.into_action_entry
()))
.collect
();
return
Some
((
converted
,
entry_path
,
entry_query
));
}
// Fall back to just actions map (old format without entry path/query)
let
raw
:
BTreeMap
<
String
,
ServerActionInfoRaw
>
=
serde_json
::
from_str
(
actions
)
.ok
()
?
;
let
converted
:
BTreeMap
<
String
,
ActionEntry
>
=
raw
.into_iter
()
.map
(|(
k
,
v
)|
(
k
,
v
.into_action_entry
()))
.collect
();
Some
((
converted
,
String
::
new
(),
String
::
new
()))
})
})
})
}
...
...
@@ -318,7 +377,7 @@ async fn parse_actions(module: ResolvedVc<Box<dyn Module>>) -> Result<Vc<OptionA
};
let
all_exports
=
all_export_names
(
fragment
);
actions
.retain
(|
_
,
name
|
all_exports
.iter
()
.any
(|
export
|
export
==
name
));
actions
.retain
(|
_
,
entry
|
all_exports
.iter
()
.any
(|
export
|
export
==
&
entry
.
name
));
}
let
mut
actions
=
FxIndexMap
::
from_iter
(
actions
.into_iter
());
...
...
@@ -415,7 +474,18 @@ fn is_turbopack_internal_var(with: &Option<Box<ObjectLit>>) -> bool {
.unwrap_or
(
false
)
}
type
HashToLayerNameModule
=
Vec
<
(
String
,
(
ActionLayer
,
String
,
ResolvedVc
<
Box
<
dyn
Module
>>
))
>
;
/// Action metadata including name and source path
#[derive(Clone,
Debug,
PartialEq,
Eq,
TraceRawVcs,
NonLocalValue,
Encode,
Decode)]
pub
struct
ActionMeta
{
pub
name
:
String
,
/// The original source file path (from entry_path in the action comment)
pub
source_path
:
String
,
}
type
HashToLayerNameModule
=
Vec
<
(
String
,
(
ActionLayer
,
ActionMeta
,
ResolvedVc
<
Box
<
dyn
Module
>>
),
)
>
;
/// A mapping of every module which exports a Server Action, with the hashed id
/// and exported name of each found action.
...
...
@@ -430,12 +500,12 @@ impl AllActions {
}
}
/// Maps the hashed action id to the action's exported function name.
/// Maps the hashed action id to the action's exported function name
and location
.
#[turbo_tasks
::
value]
#[derive(Debug)]
pub
struct
ActionMap
{
#[bincode(with
=
"turbo_bincode::indexmap"
)]
pub
actions
:
FxIndexMap
<
String
,
String
>
,
pub
actions
:
FxIndexMap
<
String
,
ActionEntry
>
,
pub
entry_path
:
String
,
pub
entry_query
:
String
,
}
...
...
crates/next-core/src/next_manifests/mod.rs
View file @
3aad67b7
...
...
@@ -390,6 +390,14 @@ pub struct ActionManifestEntry<'a> {
pub
exported_name
:
&
'a
str
,
pub
filename
:
&
'a
str
,
/// Source location line number (1-indexed), if available
#[serde(skip_serializing_if
=
"Option::is_none"
)]
pub
line
:
Option
<
u32
>
,
/// Source location column number (1-indexed), if available
#[serde(skip_serializing_if
=
"Option::is_none"
)]
pub
col
:
Option
<
u32
>
,
}
#[derive(Serialize,
Debug)]
...
...
crates/next-custom-transforms/src/transforms/server_actions.rs
View file @
3aad67b7
...
...
@@ -78,6 +78,12 @@ struct ServerReferenceExport {
needs_cache_runtime_wrapper
:
bool
,
}
/// Export info for serialization
#[derive(Clone,
Debug,
serde
::
Serialize)]
struct
ServerReferenceExportInfo
{
name
:
Atom
,
}
#[derive(Clone,
Debug)]
enum
ServerActionsErrorKind
{
ExportedSyncFunction
{
...
...
@@ -199,21 +205,19 @@ pub fn server_actions<C: Comments>(
/// Serializes the Server References into a magic comment prefixed by
/// `__next_internal_action_entry_do_not_use__`.
fn
generate_server_references_comment
(
export_
names_ordered_by_reference_id
:
&
BTreeMap
<&
Atom
,
&
ModuleExportName
>
,
export_
infos_ordered_by_reference_id
:
&
BTreeMap
<&
Atom
,
ServerReferenceExportInfo
>
,
entry_path_query
:
Option
<
(
&
str
,
&
str
)
>
,
)
->
String
{
// Convert ModuleExportName to string for serialization
let
export_map
:
BTreeMap
<
_
,
_
>
=
export_names_ordered_by_reference_id
.iter
()
.map
(|(
ref_id
,
export_name
)|
(
*
ref_id
,
export_name
.atom
()))
.collect
();
format!
(
" __next_internal_action_entry_do_not_use__ {} "
,
if
let
Some
(
entry_path_query
)
=
entry_path_query
{
serde_json
::
to_string
(
&
(
&
export_map
,
entry_path_query
.
0
,
entry_path_query
.
1
))
serde_json
::
to_string
(
&
(
&
export_infos_ordered_by_reference_id
,
entry_path_query
.
0
,
entry_path_query
.
1
,
))
}
else
{
serde_json
::
to_string
(
&
export_
map
)
serde_json
::
to_string
(
&
export_
infos_ordered_by_reference_id
)
}
.unwrap
()
)
...
...
@@ -2252,6 +2256,7 @@ impl<C: Comments> VisitMut for ServerActions<C> {
export_name
,
reference_id
:
ref_id
,
needs_cache_runtime_wrapper
,
..
}
in
&
server_reference_exports
{
if
!
self
.config.is_react_server_layer
{
...
...
@@ -2684,12 +2689,14 @@ impl<C: Comments> VisitMut for ServerActions<C> {
}
if
self
.has_action
||
self
.has_cache
{
// Flip the map and convert it to a BTreeMap for deterministic
// ordering in the server references comment.
let
export_names_ordered_by_reference_id
=
self
// Build a map of reference_id -> export info
let
export_infos_ordered_by_reference_id
=
self
.reference_ids_by_export_name
.iter
()
.map
(|(
export_name
,
reference_id
)|
(
reference_id
,
export_name
))
.map
(|(
export_name
,
reference_id
)|
{
let
name_atom
=
export_name
.atom
()
.into_owned
();
(
reference_id
,
ServerReferenceExportInfo
{
name
:
name_atom
})
})
.collect
::
<
BTreeMap
<
_
,
_
>>
();
if
self
.config.is_react_server_layer
{
...
...
@@ -2700,10 +2707,13 @@ impl<C: Comments> VisitMut for ServerActions<C> {
span
:
DUMMY_SP
,
kind
:
CommentKind
::
Block
,
text
:
generate_server_references_comment
(
&
export_
name
s_ordered_by_reference_id
,
&
export_
info
s_ordered_by_reference_id
,
match
self
.mode
{
ServerActionsMode
::
Webpack
=>
None
,
ServerActionsMode
::
Turbopack
=>
Some
((
""
,
""
)),
ServerActionsMode
::
Turbopack
=>
Some
((
&
self
.file_name
,
self
.file_query
.as_ref
()
.map_or
(
""
,
|
v
|
v
),
)),
},
)
.into
(),
...
...
@@ -2718,7 +2728,7 @@ impl<C: Comments> VisitMut for ServerActions<C> {
span
:
DUMMY_SP
,
kind
:
CommentKind
::
Block
,
text
:
generate_server_references_comment
(
&
export_
name
s_ordered_by_reference_id
,
&
export_
info
s_ordered_by_reference_id
,
None
,
)
.into
(),
...
...
@@ -2756,6 +2766,9 @@ impl<C: Comments> VisitMut for ServerActions<C> {
// re-exports since the actual source maps are in the data URLs.
let
stripped_export_name
=
strip_export_name_span
(
&
export_name
);
let
name_atom
=
export_name
.atom
()
.into_owned
();
let
export_info
=
ServerReferenceExportInfo
{
name
:
name_atom
};
new
.push
(
ModuleItem
::
ModuleDecl
(
ModuleDecl
::
ExportNamed
(
NamedExport
{
specifiers
:
vec!
[
ExportSpecifier
::
Named
(
...
...
@@ -2775,7 +2788,7 @@ impl<C: Comments> VisitMut for ServerActions<C> {
span
:
DUMMY_SP
,
kind
:
CommentKind
::
Block
,
text
:
generate_server_references_comment
(
&
std
::
iter
::
once
((
&
ref_id
,
&
export_name
))
&
std
::
iter
::
once
((
&
ref_id
,
export_info
))
.collect
(),
Some
((
&
self
.file_name
,
...
...
crates/next-custom-transforms/tests/errors/server-actions/server-graph/8/output.js
View file @
3aad67b7
...
...
@@ -3,7 +3,7 @@ export const $$RSC_SERVER_ACTION_0 = async function foo() {
'use strict'
;
};
registerServerReference
(
$$RSC_SERVER_ACTION_0
,
"006a88810ecce4a4e8b59d53b8327d7e98bbf251d7"
,
null
);
/* __next_internal_action_entry_do_not_use__ {"006a88810ecce4a4e8b59d53b8327d7e98bbf251d7":
"$$RSC_SERVER_ACTION_0"
} */
const
foo
=
$$RSC_SERVER_ACTION_0
;
/* __next_internal_action_entry_do_not_use__ {"006a88810ecce4a4e8b59d53b8327d7e98bbf251d7":
{"name":"$$RSC_SERVER_ACTION_0"}
} */
const
foo
=
$$RSC_SERVER_ACTION_0
;
const
bar
=
async
()
=>
{
const
x
=
1
;
// prettier-ignore
...
...
crates/next-custom-transforms/tests/fixture/next-font-with-directive/use-cache/output.js
View file @
3aad67b7
/* __next_internal_action_entry_do_not_use__ {"c0dd5bb6fef67f5ab84327f5164ac2c3111a159337":
"$$RSC_SERVER_CACHE_0"
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
/* __next_internal_action_entry_do_not_use__ {"c0dd5bb6fef67f5ab84327f5164ac2c3111a159337":
{"name":"$$RSC_SERVER_CACHE_0"}
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
import
{
cache
as
$$cache__
}
from
"private-next-rsc-cache-wrapper"
;
import
{
cache
as
$$reactCache__
}
from
"react"
;
import
React
from
'react'
;
...
...
crates/next-custom-transforms/tests/fixture/next-font-with-directive/use-server/output.js
View file @
3aad67b7
/* __next_internal_action_entry_do_not_use__ {"00f8b140eeaaaa6c987593016c19b3fe41bc812c62":
"myCoolServerAction"
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
/* __next_internal_action_entry_do_not_use__ {"00f8b140eeaaaa6c987593016c19b3fe41bc812c62":
{"name":"myCoolServerAction"}
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
import
React
from
'react'
;
import
inter
from
'@next/font/google/target.css?{"path":"app/test.tsx","import":"Inter","arguments":[],"variableName":"inter"}'
;
export
async
function
myCoolServerAction
()
{
...
...
crates/next-custom-transforms/tests/fixture/react-server-components/client-graph/actions/output.js
View file @
3aad67b7
/* __next_internal_action_entry_do_not_use__ {"00a275d5b08d0553a04df65d28075d3cad57073dca":
"test"
} */
import
{
createServerReference
,
callServer
,
findSourceMapURL
}
from
"private-next-rsc-action-client-wrapper"
;
/* __next_internal_action_entry_do_not_use__ {"00a275d5b08d0553a04df65d28075d3cad57073dca":
{"name":"test"}
} */
import
{
createServerReference
,
callServer
,
findSourceMapURL
}
from
"private-next-rsc-action-client-wrapper"
;
const
$$RSC_SERVER_ACTION_0
=
/*#__PURE__*/
createServerReference
(
"00a275d5b08d0553a04df65d28075d3cad57073dca"
,
callServer
,
void
0
,
findSourceMapURL
,
"test"
);
export
{
$$RSC_SERVER_ACTION_0
as
test
};
crates/next-custom-transforms/tests/fixture/react-server-components/client-graph/cache-life/output.js
View file @
3aad67b7
/* __next_internal_action_entry_do_not_use__ {"80a275d5b08d0553a04df65d28075d3cad57073dca":
"test"
} */
import
{
createServerReference
,
callServer
,
findSourceMapURL
}
from
"private-next-rsc-action-client-wrapper"
;
/* __next_internal_action_entry_do_not_use__ {"80a275d5b08d0553a04df65d28075d3cad57073dca":
{"name":"test"}
} */
import
{
createServerReference
,
callServer
,
findSourceMapURL
}
from
"private-next-rsc-action-client-wrapper"
;
const
$$RSC_SERVER_CACHE_0
=
/*#__PURE__*/
createServerReference
(
"80a275d5b08d0553a04df65d28075d3cad57073dca"
,
callServer
,
void
0
,
findSourceMapURL
,
"test"
);
export
{
$$RSC_SERVER_CACHE_0
as
test
};
crates/next-custom-transforms/tests/fixture/react-server-components/client-graph/cache-tag/output.js
View file @
3aad67b7
/* __next_internal_action_entry_do_not_use__ {"80a275d5b08d0553a04df65d28075d3cad57073dca":
"test"
} */
import
{
createServerReference
,
callServer
,
findSourceMapURL
}
from
"private-next-rsc-action-client-wrapper"
;
/* __next_internal_action_entry_do_not_use__ {"80a275d5b08d0553a04df65d28075d3cad57073dca":
{"name":"test"}
} */
import
{
createServerReference
,
callServer
,
findSourceMapURL
}
from
"private-next-rsc-action-client-wrapper"
;
const
$$RSC_SERVER_CACHE_0
=
/*#__PURE__*/
createServerReference
(
"80a275d5b08d0553a04df65d28075d3cad57073dca"
,
callServer
,
void
0
,
findSourceMapURL
,
"test"
);
export
{
$$RSC_SERVER_CACHE_0
as
test
};
crates/next-custom-transforms/tests/fixture/server-actions/client-graph/1/output.js
View file @
3aad67b7
// app/send.ts
/* __next_internal_action_entry_do_not_use__ {"00c18c215a6b7cdc64bf709f3a714ffdef1bf9651d":
"default","70e10665baac148856374b2789aceb970f66fec33e":"myAction"
} */
import
{
createServerReference
,
callServer
,
findSourceMapURL
}
from
"private-next-rsc-action-client-wrapper"
;
/* __next_internal_action_entry_do_not_use__ {"00c18c215a6b7cdc64bf709f3a714ffdef1bf9651d":
{"name":"default"},"70e10665baac148856374b2789aceb970f66fec33e":{"name":"myAction"}
} */
import
{
createServerReference
,
callServer
,
findSourceMapURL
}
from
"private-next-rsc-action-client-wrapper"
;
const
$$RSC_SERVER_ACTION_1
=
/*#__PURE__*/
createServerReference
(
"70e10665baac148856374b2789aceb970f66fec33e"
,
callServer
,
void
0
,
findSourceMapURL
,
"myAction"
);
export
{
$$RSC_SERVER_ACTION_1
as
myAction
};
export
default
/*#__PURE__*/
createServerReference
(
"00c18c215a6b7cdc64bf709f3a714ffdef1bf9651d"
,
callServer
,
void
0
,
findSourceMapURL
,
"default"
);
crates/next-custom-transforms/tests/fixture/server-actions/client-graph/10/output.js
View file @
3aad67b7
/* __next_internal_action_entry_do_not_use__ {"80c18c215a6b7cdc64bf709f3a714ffdef1bf9651d":
"default"
} */
import
{
createServerReference
,
callServer
,
findSourceMapURL
}
from
"private-next-rsc-action-client-wrapper"
;
/* __next_internal_action_entry_do_not_use__ {"80c18c215a6b7cdc64bf709f3a714ffdef1bf9651d":
{"name":"default"}
} */
import
{
createServerReference
,
callServer
,
findSourceMapURL
}
from
"private-next-rsc-action-client-wrapper"
;
export
default
/*#__PURE__*/
createServerReference
(
"80c18c215a6b7cdc64bf709f3a714ffdef1bf9651d"
,
callServer
,
void
0
,
findSourceMapURL
,
"default"
);
crates/next-custom-transforms/tests/fixture/server-actions/client-graph/11/output.js
View file @
3aad67b7
/* __next_internal_action_entry_do_not_use__ {"80c18c215a6b7cdc64bf709f3a714ffdef1bf9651d":
"default"
} */
import
{
createServerReference
,
callServer
,
findSourceMapURL
}
from
"private-next-rsc-action-client-wrapper"
;
/* __next_internal_action_entry_do_not_use__ {"80c18c215a6b7cdc64bf709f3a714ffdef1bf9651d":
{"name":"default"}
} */
import
{
createServerReference
,
callServer
,
findSourceMapURL
}
from
"private-next-rsc-action-client-wrapper"
;
export
default
/*#__PURE__*/
createServerReference
(
"80c18c215a6b7cdc64bf709f3a714ffdef1bf9651d"
,
callServer
,
void
0
,
findSourceMapURL
,
"default"
);
crates/next-custom-transforms/tests/fixture/server-actions/client-graph/12/output.js
View file @
3aad67b7
/* __next_internal_action_entry_do_not_use__ {"80c18c215a6b7cdc64bf709f3a714ffdef1bf9651d":
"default"
} */
import
{
createServerReference
,
callServer
,
findSourceMapURL
}
from
"private-next-rsc-action-client-wrapper"
;
/* __next_internal_action_entry_do_not_use__ {"80c18c215a6b7cdc64bf709f3a714ffdef1bf9651d":
{"name":"default"}
} */
import
{
createServerReference
,
callServer
,
findSourceMapURL
}
from
"private-next-rsc-action-client-wrapper"
;
export
default
/*#__PURE__*/
createServerReference
(
"80c18c215a6b7cdc64bf709f3a714ffdef1bf9651d"
,
callServer
,
void
0
,
findSourceMapURL
,
"default"
);
crates/next-custom-transforms/tests/fixture/server-actions/client-graph/13/output.js
View file @
3aad67b7
/* __next_internal_action_entry_do_not_use__ {"802af4786baeeb4011d0d5e5ff1cb669d517c9b125":
"staticallyKnownFunction","807f03edbc83b6cc7e5ccc12da8fecf25146585bb7":"getCachedData","ff1acff246876a467753785a92d1f95ac6fe32c9b9":"Other","ff27fadf3eeb97c777cea9f14a407b5c0b42ac65bb":"aliased","ff438bb59117ff1af890c80ca3e39d9e888fc93033":"wrapped","ff84effee663e5ce4e0948b55df129a8df904c67aa":"Sync","ff8fa22f08e492db15701f58a1458cc4ebf782f855":"getData","ff980f8c891ae27674b86a4804d306bdb3065c2e4f":"getStuff","ffc18c215a6b7cdc64bf709f3a714ffdef1bf9651d":"default"
} */
import
{
createServerReference
,
callServer
,
findSourceMapURL
}
from
"private-next-rsc-action-client-wrapper"
;
/* __next_internal_action_entry_do_not_use__ {"802af4786baeeb4011d0d5e5ff1cb669d517c9b125":
{"name":"staticallyKnownFunction"},"807f03edbc83b6cc7e5ccc12da8fecf25146585bb7":{"name":"getCachedData"},"ff1acff246876a467753785a92d1f95ac6fe32c9b9":{"name":"Other"},"ff27fadf3eeb97c777cea9f14a407b5c0b42ac65bb":{"name":"aliased"},"ff438bb59117ff1af890c80ca3e39d9e888fc93033":{"name":"wrapped"},"ff84effee663e5ce4e0948b55df129a8df904c67aa":{"name":"Sync"},"ff8fa22f08e492db15701f58a1458cc4ebf782f855":{"name":"getData"},"ff980f8c891ae27674b86a4804d306bdb3065c2e4f":{"name":"getStuff"},"ffc18c215a6b7cdc64bf709f3a714ffdef1bf9651d":{"name":"default"}
} */
import
{
createServerReference
,
callServer
,
findSourceMapURL
}
from
"private-next-rsc-action-client-wrapper"
;
const
$$RSC_SERVER_CACHE_0
=
/*#__PURE__*/
createServerReference
(
"807f03edbc83b6cc7e5ccc12da8fecf25146585bb7"
,
callServer
,
void
0
,
findSourceMapURL
,
"getCachedData"
);
export
{
$$RSC_SERVER_CACHE_0
as
getCachedData
};
const
$$RSC_SERVER_CACHE_1
=
/*#__PURE__*/
createServerReference
(
"802af4786baeeb4011d0d5e5ff1cb669d517c9b125"
,
callServer
,
void
0
,
findSourceMapURL
,
"staticallyKnownFunction"
);
...
...
crates/next-custom-transforms/tests/fixture/server-actions/client-graph/14/output.js
View file @
3aad67b7
/* __next_internal_action_entry_do_not_use__ {"ffaa88e24cee8047d167e47f4f374dbddc187e2899":
"fooCached"
} */
import
{
createServerReference
,
callServer
,
findSourceMapURL
}
from
"private-next-rsc-action-client-wrapper"
;
/* __next_internal_action_entry_do_not_use__ {"ffaa88e24cee8047d167e47f4f374dbddc187e2899":
{"name":"fooCached"}
} */
import
{
createServerReference
,
callServer
,
findSourceMapURL
}
from
"private-next-rsc-action-client-wrapper"
;
const
$$RSC_SERVER_CACHE_0
=
/*#__PURE__*/
createServerReference
(
"ffaa88e24cee8047d167e47f4f374dbddc187e2899"
,
callServer
,
void
0
,
findSourceMapURL
,
"fooCached"
);
export
{
$$RSC_SERVER_CACHE_0
as
fooCached
};
crates/next-custom-transforms/tests/fixture/server-actions/client-graph/15/output.js
View file @
3aad67b7
/* __next_internal_action_entry_do_not_use__ {"0073f2cbccffb158eb2704761fc88fdbd0aaa102d0":
"📙"
} */
import
{
createServerReference
,
callServer
,
findSourceMapURL
}
from
"private-next-rsc-action-client-wrapper"
;
/* __next_internal_action_entry_do_not_use__ {"0073f2cbccffb158eb2704761fc88fdbd0aaa102d0":
{"name":"📙"}
} */
import
{
createServerReference
,
callServer
,
findSourceMapURL
}
from
"private-next-rsc-action-client-wrapper"
;
const
$$RSC_SERVER_ACTION_0
=
/*#__PURE__*/
createServerReference
(
"0073f2cbccffb158eb2704761fc88fdbd0aaa102d0"
,
callServer
,
void
0
,
findSourceMapURL
,
"📙"
);
export
{
$$RSC_SERVER_ACTION_0
as
"📙"
};
crates/next-custom-transforms/tests/fixture/server-actions/client-graph/16/output.js
View file @
3aad67b7
/* __next_internal_action_entry_do_not_use__ {"8073f2cbccffb158eb2704761fc88fdbd0aaa102d0":
"📙"
} */
import
{
createServerReference
,
callServer
,
findSourceMapURL
}
from
"private-next-rsc-action-client-wrapper"
;
/* __next_internal_action_entry_do_not_use__ {"8073f2cbccffb158eb2704761fc88fdbd0aaa102d0":
{"name":"📙"}
} */
import
{
createServerReference
,
callServer
,
findSourceMapURL
}
from
"private-next-rsc-action-client-wrapper"
;
const
$$RSC_SERVER_CACHE_0
=
/*#__PURE__*/
createServerReference
(
"8073f2cbccffb158eb2704761fc88fdbd0aaa102d0"
,
callServer
,
void
0
,
findSourceMapURL
,
"📙"
);
export
{
$$RSC_SERVER_CACHE_0
as
"📙"
};
crates/next-custom-transforms/tests/fixture/server-actions/client-graph/2/output.js
View file @
3aad67b7
// app/send.ts
/* __next_internal_action_entry_do_not_use__ {"00ab21efdafbe611287bc25c0462b1e0510d13e48b":
"foo"
} */
import
{
createServerReference
,
callServer
,
findSourceMapURL
}
from
"private-next-rsc-action-client-wrapper"
;
/* __next_internal_action_entry_do_not_use__ {"00ab21efdafbe611287bc25c0462b1e0510d13e48b":
{"name":"foo"}
} */
import
{
createServerReference
,
callServer
,
findSourceMapURL
}
from
"private-next-rsc-action-client-wrapper"
;
const
$$RSC_SERVER_ACTION_0
=
/*#__PURE__*/
createServerReference
(
"00ab21efdafbe611287bc25c0462b1e0510d13e48b"
,
callServer
,
void
0
,
findSourceMapURL
,
"foo"
);
export
{
$$RSC_SERVER_ACTION_0
as
foo
};
crates/next-custom-transforms/tests/fixture/server-actions/client-graph/3/output.js
View file @
3aad67b7
/* __next_internal_action_entry_do_not_use__ {"7fa0c73dd6f5af839e3335c6b19262ecb86cca6af4":
"sampleFunction2","7fbd336abe00c3c59da66acb696fc8e151d8e54ea4":"sampleFunction","7fd4f2e95bc745b6500b439c0847003511748c8ece":"sampleFunction3","7ff03b256ee88a51700367acee3082894e25e6e7d9":"sampleFunction4"
} */
import
{
createServerReference
,
callServer
,
findSourceMapURL
}
from
"private-next-rsc-action-client-wrapper"
;
/* __next_internal_action_entry_do_not_use__ {"7fa0c73dd6f5af839e3335c6b19262ecb86cca6af4":
{"name":"sampleFunction2"},"7fbd336abe00c3c59da66acb696fc8e151d8e54ea4":{"name":"sampleFunction"},"7fd4f2e95bc745b6500b439c0847003511748c8ece":{"name":"sampleFunction3"},"7ff03b256ee88a51700367acee3082894e25e6e7d9":{"name":"sampleFunction4"}
} */
import
{
createServerReference
,
callServer
,
findSourceMapURL
}
from
"private-next-rsc-action-client-wrapper"
;
const
$$RSC_SERVER_ACTION_0
=
/*#__PURE__*/
createServerReference
(
"7fbd336abe00c3c59da66acb696fc8e151d8e54ea4"
,
callServer
,
void
0
,
findSourceMapURL
,
"sampleFunction"
);
export
{
$$RSC_SERVER_ACTION_0
as
sampleFunction
};
const
$$RSC_SERVER_ACTION_1
=
/*#__PURE__*/
createServerReference
(
"7fa0c73dd6f5af839e3335c6b19262ecb86cca6af4"
,
callServer
,
void
0
,
findSourceMapURL
,
"sampleFunction2"
);
...
...
crates/next-custom-transforms/tests/fixture/server-actions/client-graph/4/output.js
View file @
3aad67b7
/* __next_internal_action_entry_do_not_use__ {"00ac840dcaf5e8197cb02b7f3a43c119b7a770b272":
"bar"
} */
import
{
createServerReference
,
callServer
,
findSourceMapURL
}
from
"private-next-rsc-action-client-wrapper"
;
/* __next_internal_action_entry_do_not_use__ {"00ac840dcaf5e8197cb02b7f3a43c119b7a770b272":
{"name":"bar"}
} */
import
{
createServerReference
,
callServer
,
findSourceMapURL
}
from
"private-next-rsc-action-client-wrapper"
;
const
$$RSC_SERVER_ACTION_0
=
/*#__PURE__*/
createServerReference
(
"00ac840dcaf5e8197cb02b7f3a43c119b7a770b272"
,
callServer
,
void
0
,
findSourceMapURL
,
"bar"
);
export
{
$$RSC_SERVER_ACTION_0
as
bar
};
crates/next-custom-transforms/tests/fixture/server-actions/client-graph/5/output.js
View file @
3aad67b7
/* __next_internal_action_entry_do_not_use__ {"7f0090eaf4e1f08a2d94f6be401e54a2ded399b87c":
"action0"
} */
import
{
createServerReference
,
callServer
,
findSourceMapURL
}
from
"private-next-rsc-action-client-wrapper"
;
/* __next_internal_action_entry_do_not_use__ {"7f0090eaf4e1f08a2d94f6be401e54a2ded399b87c":
{"name":"action0"}
} */
import
{
createServerReference
,
callServer
,
findSourceMapURL
}
from
"private-next-rsc-action-client-wrapper"
;
const
$$RSC_SERVER_ACTION_0
=
/*#__PURE__*/
createServerReference
(
"7f0090eaf4e1f08a2d94f6be401e54a2ded399b87c"
,
callServer
,
void
0
,
findSourceMapURL
,
"action0"
);
export
{
$$RSC_SERVER_ACTION_0
as
action0
};
crates/next-custom-transforms/tests/fixture/server-actions/client-graph/6/output.js
View file @
3aad67b7
/* __next_internal_action_entry_do_not_use__ {"80ab21efdafbe611287bc25c0462b1e0510d13e48b":
"foo","80ac840dcaf5e8197cb02b7f3a43c119b7a770b272":"bar"
} */
import
{
createServerReference
,
callServer
,
findSourceMapURL
}
from
"private-next-rsc-action-client-wrapper"
;
/* __next_internal_action_entry_do_not_use__ {"80ab21efdafbe611287bc25c0462b1e0510d13e48b":
{"name":"foo"},"80ac840dcaf5e8197cb02b7f3a43c119b7a770b272":{"name":"bar"}
} */
import
{
createServerReference
,
callServer
,
findSourceMapURL
}
from
"private-next-rsc-action-client-wrapper"
;
const
$$RSC_SERVER_CACHE_0
=
/*#__PURE__*/
createServerReference
(
"80ab21efdafbe611287bc25c0462b1e0510d13e48b"
,
callServer
,
void
0
,
findSourceMapURL
,
"foo"
);
export
{
$$RSC_SERVER_CACHE_0
as
foo
};
const
$$RSC_SERVER_CACHE_1
=
/*#__PURE__*/
createServerReference
(
"80ac840dcaf5e8197cb02b7f3a43c119b7a770b272"
,
callServer
,
void
0
,
findSourceMapURL
,
"bar"
);
...
...
crates/next-custom-transforms/tests/fixture/server-actions/client-graph/7/output.js
View file @
3aad67b7
/* __next_internal_action_entry_do_not_use__ {"00c18c215a6b7cdc64bf709f3a714ffdef1bf9651d":
"default"
} */
import
{
createServerReference
,
callServer
,
findSourceMapURL
}
from
"private-next-rsc-action-client-wrapper"
;
/* __next_internal_action_entry_do_not_use__ {"00c18c215a6b7cdc64bf709f3a714ffdef1bf9651d":
{"name":"default"}
} */
import
{
createServerReference
,
callServer
,
findSourceMapURL
}
from
"private-next-rsc-action-client-wrapper"
;
export
default
/*#__PURE__*/
createServerReference
(
"00c18c215a6b7cdc64bf709f3a714ffdef1bf9651d"
,
callServer
,
void
0
,
findSourceMapURL
,
"default"
);
crates/next-custom-transforms/tests/fixture/server-actions/client-graph/8/output.js
View file @
3aad67b7
/* __next_internal_action_entry_do_not_use__ {"80ac840dcaf5e8197cb02b7f3a43c119b7a770b272":
"bar"
} */
import
{
createServerReference
,
callServer
,
findSourceMapURL
}
from
"private-next-rsc-action-client-wrapper"
;
/* __next_internal_action_entry_do_not_use__ {"80ac840dcaf5e8197cb02b7f3a43c119b7a770b272":
{"name":"bar"}
} */
import
{
createServerReference
,
callServer
,
findSourceMapURL
}
from
"private-next-rsc-action-client-wrapper"
;
const
$$RSC_SERVER_ACTION_0
=
/*#__PURE__*/
createServerReference
(
"80ac840dcaf5e8197cb02b7f3a43c119b7a770b272"
,
callServer
,
void
0
,
findSourceMapURL
,
"bar"
);
export
{
$$RSC_SERVER_ACTION_0
as
bar
};
crates/next-custom-transforms/tests/fixture/server-actions/client-graph/9/output.js
View file @
3aad67b7
/* __next_internal_action_entry_do_not_use__ {"80c18c215a6b7cdc64bf709f3a714ffdef1bf9651d":
"default"
} */
import
{
createServerReference
,
callServer
,
findSourceMapURL
}
from
"private-next-rsc-action-client-wrapper"
;
/* __next_internal_action_entry_do_not_use__ {"80c18c215a6b7cdc64bf709f3a714ffdef1bf9651d":
{"name":"default"}
} */
import
{
createServerReference
,
callServer
,
findSourceMapURL
}
from
"private-next-rsc-action-client-wrapper"
;
export
default
/*#__PURE__*/
createServerReference
(
"80c18c215a6b7cdc64bf709f3a714ffdef1bf9651d"
,
callServer
,
void
0
,
findSourceMapURL
,
"default"
);
crates/next-custom-transforms/tests/fixture/server-actions/client-graph/turbopack/1/output.js
View file @
3aad67b7
"use turbopack no side effects"
;
export
{
foo
}
from
"data:text/javascript,%2F%2A%20__next_internal_action_entry_do_not_use__%20%5B%7B%2200ab21efdafbe611287bc25c0462b1e0510d13e48b%22%3A%
22foo%22
%7D%2C%22%2Fapp%2Fitem.js%22%2C%22%22%5D%20%2A%2F%22use%20turbopack%20no%20side%20effects%22%3Bimport%7BcreateServerReference%2CcallServer%2CfindSourceMapURL%7Dfrom%22private-next-rsc-action-client-wrapper%22%3Bconst%20%24%24RSC_SERVER_ACTION_0%3D%2F%2A%23__PURE__%2A%2FcreateServerReference%28%2200ab21efdafbe611287bc25c0462b1e0510d13e48b%22%2CcallServer%2Cvoid%200%2CfindSourceMapURL%2C%22foo%22%29%3Bexport%7B%24%24RSC_SERVER_ACTION_0%20as%20foo%7D%3B"
;
export
{
bar
}
from
"data:text/javascript,%2F%2A%20__next_internal_action_entry_do_not_use__%20%5B%7B%2200ac840dcaf5e8197cb02b7f3a43c119b7a770b272%22%3A%
22bar%22
%7D%2C%22%2Fapp%2Fitem.js%22%2C%22%22%5D%20%2A%2F%22use%20turbopack%20no%20side%20effects%22%3Bimport%7BcreateServerReference%2CcallServer%2CfindSourceMapURL%7Dfrom%22private-next-rsc-action-client-wrapper%22%3Bconst%20%24%24RSC_SERVER_ACTION_1%3D%2F%2A%23__PURE__%2A%2FcreateServerReference%28%2200ac840dcaf5e8197cb02b7f3a43c119b7a770b272%22%2CcallServer%2Cvoid%200%2CfindSourceMapURL%2C%22bar%22%29%3Bexport%7B%24%24RSC_SERVER_ACTION_1%20as%20bar%7D%3B"
;
export
{
foo
}
from
"data:text/javascript,%2F%2A%20__next_internal_action_entry_do_not_use__%20%5B%7B%2200ab21efdafbe611287bc25c0462b1e0510d13e48b%22%3A%
7B%22name%22%3A%22foo%22%7D
%7D%2C%22%2Fapp%2Fitem.js%22%2C%22%22%5D%20%2A%2F%22use%20turbopack%20no%20side%20effects%22%3Bimport%7BcreateServerReference%2CcallServer%2CfindSourceMapURL%7Dfrom%22private-next-rsc-action-client-wrapper%22%3Bconst%20%24%24RSC_SERVER_ACTION_0%3D%2F%2A%23__PURE__%2A%2FcreateServerReference%28%2200ab21efdafbe611287bc25c0462b1e0510d13e48b%22%2CcallServer%2Cvoid%200%2CfindSourceMapURL%2C%22foo%22%29%3Bexport%7B%24%24RSC_SERVER_ACTION_0%20as%20foo%7D%3B"
;
export
{
bar
}
from
"data:text/javascript,%2F%2A%20__next_internal_action_entry_do_not_use__%20%5B%7B%2200ac840dcaf5e8197cb02b7f3a43c119b7a770b272%22%3A%
7B%22name%22%3A%22bar%22%7D
%7D%2C%22%2Fapp%2Fitem.js%22%2C%22%22%5D%20%2A%2F%22use%20turbopack%20no%20side%20effects%22%3Bimport%7BcreateServerReference%2CcallServer%2CfindSourceMapURL%7Dfrom%22private-next-rsc-action-client-wrapper%22%3Bconst%20%24%24RSC_SERVER_ACTION_1%3D%2F%2A%23__PURE__%2A%2FcreateServerReference%28%2200ac840dcaf5e8197cb02b7f3a43c119b7a770b272%22%2CcallServer%2Cvoid%200%2CfindSourceMapURL%2C%22bar%22%29%3Bexport%7B%24%24RSC_SERVER_ACTION_1%20as%20bar%7D%3B"
;
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/1/output.js
View file @
3aad67b7
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
import
{
encryptActionBoundArgs
,
decryptActionBoundArgs
}
from
"private-next-rsc-action-encryption"
;
/* __next_internal_action_entry_do_not_use__ {"406a88810ecce4a4e8b59d53b8327d7e98bbf251d7":
"$$RSC_SERVER_ACTION_0","4090b5db271335765a4b0eab01f044b381b5ebd5cd":"$$RSC_SERVER_ACTION_1"
} */
import
{
Button
}
from
'components'
;
/* __next_internal_action_entry_do_not_use__ {"406a88810ecce4a4e8b59d53b8327d7e98bbf251d7":
{"name":"$$RSC_SERVER_ACTION_0"},"4090b5db271335765a4b0eab01f044b381b5ebd5cd":{"name":"$$RSC_SERVER_ACTION_1"}
} */
import
{
Button
}
from
'components'
;
import
deleteFromDb
from
'db'
;
export
const
$$RSC_SERVER_ACTION_0
=
async
function
deleteItem
(
$$ACTION_CLOSURE_BOUND
)
{
var
[
$$ACTION_ARG_0
,
$$ACTION_ARG_1
]
=
await
decryptActionBoundArgs
(
"406a88810ecce4a4e8b59d53b8327d7e98bbf251d7"
,
$$ACTION_CLOSURE_BOUND
);
...
...
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/10/output.js
View file @
3aad67b7
/* __next_internal_action_entry_do_not_use__ {"00c18c215a6b7cdc64bf709f3a714ffdef1bf9651d":
"default"
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
/* __next_internal_action_entry_do_not_use__ {"00c18c215a6b7cdc64bf709f3a714ffdef1bf9651d":
{"name":"default"}
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
export
default
async
function
foo
()
{}
import
{
ensureServerEntryExports
}
from
"private-next-rsc-action-validate"
;
ensureServerEntryExports
([
...
...
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/11/output.js
View file @
3aad67b7
/* __next_internal_action_entry_do_not_use__ {"00c18c215a6b7cdc64bf709f3a714ffdef1bf9651d":
"default"
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
/* __next_internal_action_entry_do_not_use__ {"00c18c215a6b7cdc64bf709f3a714ffdef1bf9651d":
{"name":"default"}
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
const
$$RSC_SERVER_ACTION_0
=
async
function
()
{};
Object
[
"defineProperty"
](
$$RSC_SERVER_ACTION_0
,
"name"
,
{
value
:
"default"
...
...
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/12/output.js
View file @
3aad67b7
/* __next_internal_action_entry_do_not_use__ {"00c18c215a6b7cdc64bf709f3a714ffdef1bf9651d":
"default"
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
/* __next_internal_action_entry_do_not_use__ {"00c18c215a6b7cdc64bf709f3a714ffdef1bf9651d":
{"name":"default"}
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
async
function
foo
()
{}
export
default
foo
;
import
{
ensureServerEntryExports
}
from
"private-next-rsc-action-validate"
;
...
...
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/13/output.js
View file @
3aad67b7
/* __next_internal_action_entry_do_not_use__ {"00ac840dcaf5e8197cb02b7f3a43c119b7a770b272":
"bar","00c18c215a6b7cdc64bf709f3a714ffdef1bf9651d":"default"
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
/* __next_internal_action_entry_do_not_use__ {"00ac840dcaf5e8197cb02b7f3a43c119b7a770b272":
{"name":"bar"},"00c18c215a6b7cdc64bf709f3a714ffdef1bf9651d":{"name":"default"}
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
const
foo
=
async
function
()
{};
export
default
foo
;
const
bar
=
async
function
()
{};
...
...
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/14/output.js
View file @
3aad67b7
/* __next_internal_action_entry_do_not_use__ {"00ab21efdafbe611287bc25c0462b1e0510d13e48b":
"foo"
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
/* __next_internal_action_entry_do_not_use__ {"00ab21efdafbe611287bc25c0462b1e0510d13e48b":
{"name":"foo"}
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
export
async
function
foo
()
{
async
function
bar
()
{}
}
...
...
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/15/output.js
View file @
3aad67b7
/* __next_internal_action_entry_do_not_use__ {"60c18c215a6b7cdc64bf709f3a714ffdef1bf9651d":
"default"
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
/* __next_internal_action_entry_do_not_use__ {"60c18c215a6b7cdc64bf709f3a714ffdef1bf9651d":
{"name":"default"}
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
const
$$RSC_SERVER_ACTION_0
=
async
(
a
,
b
)
=>
{
console
.
log
(
a
,
b
);
};
...
...
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/16/output.js
View file @
3aad67b7
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
import
{
encryptActionBoundArgs
,
decryptActionBoundArgs
}
from
"private-next-rsc-action-encryption"
;
/* __next_internal_action_entry_do_not_use__ {"406a88810ecce4a4e8b59d53b8327d7e98bbf251d7":
"$$RSC_SERVER_ACTION_0","7f1c36b06e398c97abe5d5d7ae8c672bfddf4e1b91":"$$RSC_SERVER_ACTION_2","7f90b5db271335765a4b0eab01f044b381b5ebd5cd":"$$RSC_SERVER_ACTION_1"
} */
import
{
Button
}
from
'components'
;
/* __next_internal_action_entry_do_not_use__ {"406a88810ecce4a4e8b59d53b8327d7e98bbf251d7":
{"name":"$$RSC_SERVER_ACTION_0"},"7f1c36b06e398c97abe5d5d7ae8c672bfddf4e1b91":{"name":"$$RSC_SERVER_ACTION_2"},"7f90b5db271335765a4b0eab01f044b381b5ebd5cd":{"name":"$$RSC_SERVER_ACTION_1"}
} */
import
{
Button
}
from
'components'
;
import
deleteFromDb
from
'db'
;
const
v1
=
'v1'
;
export
const
$$RSC_SERVER_ACTION_0
=
async
function
deleteItem
(
$$ACTION_CLOSURE_BOUND
)
{
...
...
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/17/output.js
View file @
3aad67b7
/* __next_internal_action_entry_do_not_use__ {"00ab21efdafbe611287bc25c0462b1e0510d13e48b":
"foo","00ac840dcaf5e8197cb02b7f3a43c119b7a770b272":"bar"
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
/* __next_internal_action_entry_do_not_use__ {"00ab21efdafbe611287bc25c0462b1e0510d13e48b":
{"name":"foo"},"00ac840dcaf5e8197cb02b7f3a43c119b7a770b272":{"name":"bar"}
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
export
const
foo
=
async
()
=>
{};
const
bar
=
async
()
=>
{};
export
{
bar
};
...
...
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/18/output.js
View file @
3aad67b7
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
import
{
encryptActionBoundArgs
,
decryptActionBoundArgs
}
from
"private-next-rsc-action-encryption"
;
/* __next_internal_action_entry_do_not_use__ {"406a88810ecce4a4e8b59d53b8327d7e98bbf251d7":
"$$RSC_SERVER_ACTION_0","4090b5db271335765a4b0eab01f044b381b5ebd5cd":"$$RSC_SERVER_ACTION_1"
} */
import
{
Button
}
from
'components'
;
/* __next_internal_action_entry_do_not_use__ {"406a88810ecce4a4e8b59d53b8327d7e98bbf251d7":
{"name":"$$RSC_SERVER_ACTION_0"},"4090b5db271335765a4b0eab01f044b381b5ebd5cd":{"name":"$$RSC_SERVER_ACTION_1"}
} */
import
{
Button
}
from
'components'
;
import
deleteFromDb
from
'db'
;
const
v1
=
'v1'
;
export
const
$$RSC_SERVER_ACTION_0
=
async
function
action
(
$$ACTION_CLOSURE_BOUND
)
{
...
...
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/19/output.js
View file @
3aad67b7
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
import
{
encryptActionBoundArgs
,
decryptActionBoundArgs
}
from
"private-next-rsc-action-encryption"
;
/* __next_internal_action_entry_do_not_use__ {"606a88810ecce4a4e8b59d53b8327d7e98bbf251d7":
"$$RSC_SERVER_ACTION_0"
} */
import
{
Button
}
from
'components'
;
/* __next_internal_action_entry_do_not_use__ {"606a88810ecce4a4e8b59d53b8327d7e98bbf251d7":
{"name":"$$RSC_SERVER_ACTION_0"}
} */
import
{
Button
}
from
'components'
;
export
const
$$RSC_SERVER_ACTION_0
=
async
function
action
(
$$ACTION_CLOSURE_BOUND
,
value2
)
{
var
[
$$ACTION_ARG_0
]
=
await
decryptActionBoundArgs
(
"606a88810ecce4a4e8b59d53b8327d7e98bbf251d7"
,
$$ACTION_CLOSURE_BOUND
);
return
$$ACTION_ARG_0
*
value2
;
...
...
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/2/output.js
View file @
3aad67b7
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
/* __next_internal_action_entry_do_not_use__ {"0090b5db271335765a4b0eab01f044b381b5ebd5cd":
"$$RSC_SERVER_ACTION_1","706a88810ecce4a4e8b59d53b8327d7e98bbf251d7":"$$RSC_SERVER_ACTION_0"
} */
import
{
validator
}
from
'auth'
;
/* __next_internal_action_entry_do_not_use__ {"0090b5db271335765a4b0eab01f044b381b5ebd5cd":
{"name":"$$RSC_SERVER_ACTION_1"},"706a88810ecce4a4e8b59d53b8327d7e98bbf251d7":{"name":"$$RSC_SERVER_ACTION_0"}
} */
import
{
validator
}
from
'auth'
;
import
{
Button
}
from
'components'
;
export
const
$$RSC_SERVER_ACTION_0
=
async
function
myAction
(
a
,
b
,
c
)
{
console
.
log
(
'a'
);
...
...
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/20/output.js
View file @
3aad67b7
/* __next_internal_action_entry_do_not_use__ {"7fc18c215a6b7cdc64bf709f3a714ffdef1bf9651d":
"default"
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
/* __next_internal_action_entry_do_not_use__ {"7fc18c215a6b7cdc64bf709f3a714ffdef1bf9651d":
{"name":"default"}
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
/** @type {[any]} */
const
[
foo
]
=
[
null
];
...
...
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/21/output.js
View file @
3aad67b7
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
import
{
encryptActionBoundArgs
,
decryptActionBoundArgs
}
from
"private-next-rsc-action-encryption"
;
/* __next_internal_action_entry_do_not_use__ {"001c36b06e398c97abe5d5d7ae8c672bfddf4e1b91":
"$$RSC_SERVER_ACTION_2","0090b5db271335765a4b0eab01f044b381b5ebd5cd":"$$RSC_SERVER_ACTION_1","606a88810ecce4a4e8b59d53b8327d7e98bbf251d7":"$$RSC_SERVER_ACTION_0"
} */
import
{
validator
,
another
}
from
'auth'
;
/* __next_internal_action_entry_do_not_use__ {"001c36b06e398c97abe5d5d7ae8c672bfddf4e1b91":
{"name":"$$RSC_SERVER_ACTION_2"},"0090b5db271335765a4b0eab01f044b381b5ebd5cd":{"name":"$$RSC_SERVER_ACTION_1"},"606a88810ecce4a4e8b59d53b8327d7e98bbf251d7":{"name":"$$RSC_SERVER_ACTION_0"}
} */
import
{
validator
,
another
}
from
'auth'
;
import
{
Button
}
from
'components'
;
const
x
=
1
;
export
const
$$RSC_SERVER_ACTION_0
=
async
function
(
$$ACTION_CLOSURE_BOUND
,
z
)
{
...
...
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/22/output.js
View file @
3aad67b7
/* __next_internal_action_entry_do_not_use__ {"7fc18c215a6b7cdc64bf709f3a714ffdef1bf9651d":
"default","7ff14702b5a021dd117f7ec7a3c838f397c2046d3b":"action"
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
/* __next_internal_action_entry_do_not_use__ {"7fc18c215a6b7cdc64bf709f3a714ffdef1bf9651d":
{"name":"default"},"7ff14702b5a021dd117f7ec7a3c838f397c2046d3b":{"name":"action"}
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
import
{
validator
}
from
'auth'
;
export
const
action
=
validator
(
async
()
=>
{});
const
$$RSC_SERVER_ACTION_0
=
validator
(
async
()
=>
{});
...
...
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/23/output.js
View file @
3aad67b7
...
...
@@ -10,7 +10,7 @@ export const $$RSC_SERVER_ACTION_1 = async function action2($$ACTION_CLOSURE_BOU
console
.
log
(
a
,
b
,
$$ACTION_ARG_0
,
c
,
d
);
};
registerServerReference
(
$$RSC_SERVER_ACTION_1
,
"7c90b5db271335765a4b0eab01f044b381b5ebd5cd"
,
null
);
/* __next_internal_action_entry_do_not_use__ {"7c6a88810ecce4a4e8b59d53b8327d7e98bbf251d7":
"$$RSC_SERVER_ACTION_0","7c90b5db271335765a4b0eab01f044b381b5ebd5cd":"$$RSC_SERVER_ACTION_1"
} */
export
default
function
Page
({
foo
,
x
,
y
})
{
/* __next_internal_action_entry_do_not_use__ {"7c6a88810ecce4a4e8b59d53b8327d7e98bbf251d7":
{"name":"$$RSC_SERVER_ACTION_0"},"7c90b5db271335765a4b0eab01f044b381b5ebd5cd":{"name":"$$RSC_SERVER_ACTION_1"}
} */
export
default
function
Page
({
foo
,
x
,
y
})
{
var
action
=
$$RSC_SERVER_ACTION_0
.
bind
(
null
,
encryptActionBoundArgs
(
"7c6a88810ecce4a4e8b59d53b8327d7e98bbf251d7"
,
x
));
action
.
bind
(
null
,
foo
[
0
],
foo
[
1
],
foo
.
x
,
foo
[
y
]);
const
action2
=
$$RSC_SERVER_ACTION_1
.
bind
(
null
,
encryptActionBoundArgs
(
"7c90b5db271335765a4b0eab01f044b381b5ebd5cd"
,
x
));
...
...
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/24/output.js
View file @
3aad67b7
...
...
@@ -5,6 +5,6 @@ export const $$RSC_SERVER_ACTION_0 = async function action($$ACTION_CLOSURE_BOUN
console
.
log
(
a
,
b
,
$$ACTION_ARG_0
,
d
);
};
registerServerReference
(
$$RSC_SERVER_ACTION_0
,
"7c6a88810ecce4a4e8b59d53b8327d7e98bbf251d7"
,
null
);
/* __next_internal_action_entry_do_not_use__ {"7c6a88810ecce4a4e8b59d53b8327d7e98bbf251d7":
"$$RSC_SERVER_ACTION_0"
} */
export
default
function
Page
({
foo
,
x
,
y
})
{
/* __next_internal_action_entry_do_not_use__ {"7c6a88810ecce4a4e8b59d53b8327d7e98bbf251d7":
{"name":"$$RSC_SERVER_ACTION_0"}
} */
export
default
function
Page
({
foo
,
x
,
y
})
{
var
action
=
$$RSC_SERVER_ACTION_0
.
bind
(
null
,
encryptActionBoundArgs
(
"7c6a88810ecce4a4e8b59d53b8327d7e98bbf251d7"
,
foo
));
}
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/25/output.js
View file @
3aad67b7
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
import
{
encryptActionBoundArgs
,
decryptActionBoundArgs
}
from
"private-next-rsc-action-encryption"
;
/* __next_internal_action_entry_do_not_use__ {"406a88810ecce4a4e8b59d53b8327d7e98bbf251d7":
"$$RSC_SERVER_ACTION_0","4090b5db271335765a4b0eab01f044b381b5ebd5cd":"$$RSC_SERVER_ACTION_1"
} */
import
{
Button
}
from
'components'
;
/* __next_internal_action_entry_do_not_use__ {"406a88810ecce4a4e8b59d53b8327d7e98bbf251d7":
{"name":"$$RSC_SERVER_ACTION_0"},"4090b5db271335765a4b0eab01f044b381b5ebd5cd":{"name":"$$RSC_SERVER_ACTION_1"}
} */
import
{
Button
}
from
'components'
;
import
deleteFromDb
from
'db'
;
export
const
$$RSC_SERVER_ACTION_0
=
async
function
deleteItem
(
$$ACTION_CLOSURE_BOUND
)
{
var
[
$$ACTION_ARG_0
,
$$ACTION_ARG_1
]
=
await
decryptActionBoundArgs
(
"406a88810ecce4a4e8b59d53b8327d7e98bbf251d7"
,
$$ACTION_CLOSURE_BOUND
);
...
...
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/26/output.js
View file @
3aad67b7
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
/* __next_internal_action_entry_do_not_use__ {"406a88810ecce4a4e8b59d53b8327d7e98bbf251d7":
"$$RSC_SERVER_ACTION_0"
} */
const
noop
=
(
action
)
=>
action
;
/* __next_internal_action_entry_do_not_use__ {"406a88810ecce4a4e8b59d53b8327d7e98bbf251d7":
{"name":"$$RSC_SERVER_ACTION_0"}
} */
const
noop
=
(
action
)
=>
action
;
export
const
$$RSC_SERVER_ACTION_0
=
async
function
(
data
)
{
console
.
log
(
data
);
};
...
...
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/27/output.js
View file @
3aad67b7
// Rules here:
// 1. Each exported function should still be exported, but as a reference `registerServerReference(...)`.
// 2. Actual action functions should be renamed to `$$ACTION_...` and got exported.
/* __next_internal_action_entry_do_not_use__ {"001c36b06e398c97abe5d5d7ae8c672bfddf4e1b91":
"$$RSC_SERVER_ACTION_2","006a88810ecce4a4e8b59d53b8327d7e98bbf251d7":"$$RSC_SERVER_ACTION_0","0090b5db271335765a4b0eab01f044b381b5ebd5cd":"$$RSC_SERVER_ACTION_1","009ed0cc47abc4e1c64320cf42b74ae60b58c40f00":"$$RSC_SERVER_ACTION_3","00a9b2939c1f39073a6bed227fd20233064c8b7869":"$$RSC_SERVER_ACTION_4"
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
/* __next_internal_action_entry_do_not_use__ {"001c36b06e398c97abe5d5d7ae8c672bfddf4e1b91":
{"name":"$$RSC_SERVER_ACTION_2"},"006a88810ecce4a4e8b59d53b8327d7e98bbf251d7":{"name":"$$RSC_SERVER_ACTION_0"},"0090b5db271335765a4b0eab01f044b381b5ebd5cd":{"name":"$$RSC_SERVER_ACTION_1"},"009ed0cc47abc4e1c64320cf42b74ae60b58c40f00":{"name":"$$RSC_SERVER_ACTION_3"},"00a9b2939c1f39073a6bed227fd20233064c8b7869":{"name":"$$RSC_SERVER_ACTION_4"}
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
export
const
$$RSC_SERVER_ACTION_0
=
async
function
foo
()
{
console
.
log
(
1
);
};
...
...
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/28/output.js
View file @
3aad67b7
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
import
{
encryptActionBoundArgs
,
decryptActionBoundArgs
}
from
"private-next-rsc-action-encryption"
;
/* __next_internal_action_entry_do_not_use__ {"601c36b06e398c97abe5d5d7ae8c672bfddf4e1b91":
"$$RSC_SERVER_ACTION_2","606a88810ecce4a4e8b59d53b8327d7e98bbf251d7":"$$RSC_SERVER_ACTION_0","6090b5db271335765a4b0eab01f044b381b5ebd5cd":"$$RSC_SERVER_ACTION_1"
} */
let
a
,
f
;
/* __next_internal_action_entry_do_not_use__ {"601c36b06e398c97abe5d5d7ae8c672bfddf4e1b91":
{"name":"$$RSC_SERVER_ACTION_2"},"606a88810ecce4a4e8b59d53b8327d7e98bbf251d7":{"name":"$$RSC_SERVER_ACTION_0"},"6090b5db271335765a4b0eab01f044b381b5ebd5cd":{"name":"$$RSC_SERVER_ACTION_1"}
} */
let
a
,
f
;
export
const
// FIXME: invalid transformation of hoisted functions (https://github.com/vercel/next.js/issues/57392)
// (remove output.js from `tsconfig.json#exclude` to see the error)
$$RSC_SERVER_ACTION_0
=
async
function
action2
(
$$ACTION_CLOSURE_BOUND
,
e
)
{
...
...
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/29/output.js
View file @
3aad67b7
/* __next_internal_action_entry_do_not_use__ {"40c18c215a6b7cdc64bf709f3a714ffdef1bf9651d":
"default"
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
/* __next_internal_action_entry_do_not_use__ {"40c18c215a6b7cdc64bf709f3a714ffdef1bf9651d":
{"name":"default"}
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
export
const
dec
=
async
(
value
)
=>
{
return
value
-
1
;
};
...
...
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/3/output.js
View file @
3aad67b7
// app/send.ts
/* __next_internal_action_entry_do_not_use__ {"70e10665baac148856374b2789aceb970f66fec33e":
"myAction"
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
/* __next_internal_action_entry_do_not_use__ {"70e10665baac148856374b2789aceb970f66fec33e":
{"name":"myAction"}
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
export
async
function
myAction
(
a
,
b
,
c
)
{
console
.
log
(
'a'
);
}
...
...
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/30/output.js
View file @
3aad67b7
/* __next_internal_action_entry_do_not_use__ {"601c36b06e398c97abe5d5d7ae8c672bfddf4e1b91":
"$$RSC_SERVER_ACTION_2","606a88810ecce4a4e8b59d53b8327d7e98bbf251d7":"$$RSC_SERVER_ACTION_0","6090b5db271335765a4b0eab01f044b381b5ebd5cd":"$$RSC_SERVER_ACTION_1","7f0090eaf4e1f08a2d94f6be401e54a2ded399b87c":"action0"
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
/* __next_internal_action_entry_do_not_use__ {"601c36b06e398c97abe5d5d7ae8c672bfddf4e1b91":
{"name":"$$RSC_SERVER_ACTION_2"},"606a88810ecce4a4e8b59d53b8327d7e98bbf251d7":{"name":"$$RSC_SERVER_ACTION_0"},"6090b5db271335765a4b0eab01f044b381b5ebd5cd":{"name":"$$RSC_SERVER_ACTION_1"},"7f0090eaf4e1f08a2d94f6be401e54a2ded399b87c":{"name":"action0"}
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
import
{
encryptActionBoundArgs
,
decryptActionBoundArgs
}
from
"private-next-rsc-action-encryption"
;
let
a
,
f
;
export
const
// FIXME: invalid transformation of hoisted functions (https://github.com/vercel/next.js/issues/57392)
...
...
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/31/output.js
View file @
3aad67b7
/* __next_internal_action_entry_do_not_use__ {"7fabf760c735ba66c4c26a2913864dd7e28fb88a91":
"action2","7ff14702b5a021dd117f7ec7a3c838f397c2046d3b":"action"
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
/* __next_internal_action_entry_do_not_use__ {"7fabf760c735ba66c4c26a2913864dd7e28fb88a91":
{"name":"action2"},"7ff14702b5a021dd117f7ec7a3c838f397c2046d3b":{"name":"action"}
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
export
const
action
=
{
async
f
(
x
)
{
;
...
...
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/32/output.js
View file @
3aad67b7
...
...
@@ -6,7 +6,7 @@ export const $$RSC_SERVER_ACTION_0 = async function action($$ACTION_CLOSURE_BOUN
console
.
log
(
$$ACTION_ARG_2
.
push
.
call
(
$$ACTION_ARG_2
,
5
));
};
registerServerReference
(
$$RSC_SERVER_ACTION_0
,
"406a88810ecce4a4e8b59d53b8327d7e98bbf251d7"
,
null
);
/* __next_internal_action_entry_do_not_use__ {"406a88810ecce4a4e8b59d53b8327d7e98bbf251d7":
"$$RSC_SERVER_ACTION_0"
} */
export
function
Component
()
{
/* __next_internal_action_entry_do_not_use__ {"406a88810ecce4a4e8b59d53b8327d7e98bbf251d7":
{"name":"$$RSC_SERVER_ACTION_0"}
} */
export
function
Component
()
{
const
data
=
[
1
,
2
,
...
...
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/33/output.js
View file @
3aad67b7
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
import
{
cache
as
$$cache__
}
from
"private-next-rsc-cache-wrapper"
;
import
{
cache
as
$$reactCache__
}
from
"react"
;
/* __next_internal_action_entry_do_not_use__ {"803128060c414d59f8552e4788b846c0d2b7f74743":
"$$RSC_SERVER_CACHE_0"
} */
const
v
=
'world'
;
/* __next_internal_action_entry_do_not_use__ {"803128060c414d59f8552e4788b846c0d2b7f74743":
{"name":"$$RSC_SERVER_CACHE_0"}
} */
const
v
=
'world'
;
const
$$RSC_SERVER_CACHE_0_INNER
=
async
function
fn
()
{
return
'hello, '
+
v
;
};
...
...
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/34/output.js
View file @
3aad67b7
/* __next_internal_action_entry_do_not_use__ {"8012a8d21b6362b4cc8f5b15560525095bc48dba80":
"$$RSC_SERVER_CACHE_3","803128060c414d59f8552e4788b846c0d2b7f74743":"$$RSC_SERVER_CACHE_0","8069348c79fce073bae2f70f139565a2fda1c74c74":"$$RSC_SERVER_CACHE_2","80951c375b4a6a6e89d67b743ec5808127cfde405d":"$$RSC_SERVER_CACHE_1"
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
/* __next_internal_action_entry_do_not_use__ {"8012a8d21b6362b4cc8f5b15560525095bc48dba80":
{"name":"$$RSC_SERVER_CACHE_3"},"803128060c414d59f8552e4788b846c0d2b7f74743":{"name":"$$RSC_SERVER_CACHE_0"},"8069348c79fce073bae2f70f139565a2fda1c74c74":{"name":"$$RSC_SERVER_CACHE_2"},"80951c375b4a6a6e89d67b743ec5808127cfde405d":{"name":"$$RSC_SERVER_CACHE_1"}
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
import
{
cache
as
$$cache__
}
from
"private-next-rsc-cache-wrapper"
;
import
{
cache
as
$$reactCache__
}
from
"react"
;
const
$$RSC_SERVER_CACHE_0_INNER
=
async
function
foo
()
{
...
...
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/35/output.js
View file @
3aad67b7
/* __next_internal_action_entry_do_not_use__ {"803128060c414d59f8552e4788b846c0d2b7f74743":
"$$RSC_SERVER_CACHE_0"
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
/* __next_internal_action_entry_do_not_use__ {"803128060c414d59f8552e4788b846c0d2b7f74743":
{"name":"$$RSC_SERVER_CACHE_0"}
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
import
{
cache
as
$$cache__
}
from
"private-next-rsc-cache-wrapper"
;
import
{
cache
as
$$reactCache__
}
from
"react"
;
const
$$RSC_SERVER_CACHE_0_INNER
=
async
function
my_fn
()
{
...
...
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/36/output.js
View file @
3aad67b7
/* __next_internal_action_entry_do_not_use__ {"8012a8d21b6362b4cc8f5b15560525095bc48dba80":
"$$RSC_SERVER_CACHE_3","803128060c414d59f8552e4788b846c0d2b7f74743":"$$RSC_SERVER_CACHE_0","80951c375b4a6a6e89d67b743ec5808127cfde405d":"$$RSC_SERVER_CACHE_1","c069348c79fce073bae2f70f139565a2fda1c74c74":"$$RSC_SERVER_CACHE_2"
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
/* __next_internal_action_entry_do_not_use__ {"8012a8d21b6362b4cc8f5b15560525095bc48dba80":
{"name":"$$RSC_SERVER_CACHE_3"},"803128060c414d59f8552e4788b846c0d2b7f74743":{"name":"$$RSC_SERVER_CACHE_0"},"80951c375b4a6a6e89d67b743ec5808127cfde405d":{"name":"$$RSC_SERVER_CACHE_1"},"c069348c79fce073bae2f70f139565a2fda1c74c74":{"name":"$$RSC_SERVER_CACHE_2"}
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
import
{
cache
as
$$cache__
}
from
"private-next-rsc-cache-wrapper"
;
import
{
cache
as
$$reactCache__
}
from
"react"
;
const
$$RSC_SERVER_CACHE_0_INNER
=
async
function
foo
()
{
...
...
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/37/output.js
View file @
3aad67b7
/* __next_internal_action_entry_do_not_use__ {"803128060c414d59f8552e4788b846c0d2b7f74743":
"$$RSC_SERVER_CACHE_0"
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
/* __next_internal_action_entry_do_not_use__ {"803128060c414d59f8552e4788b846c0d2b7f74743":
{"name":"$$RSC_SERVER_CACHE_0"}
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
import
{
cache
as
$$cache__
}
from
"private-next-rsc-cache-wrapper"
;
import
{
cache
as
$$reactCache__
}
from
"react"
;
const
$$RSC_SERVER_CACHE_0_INNER
=
async
function
fn
()
{
...
...
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/38/output.js
View file @
3aad67b7
/* __next_internal_action_entry_do_not_use__ {"803128060c414d59f8552e4788b846c0d2b7f74743":
"$$RSC_SERVER_CACHE_0"
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
/* __next_internal_action_entry_do_not_use__ {"803128060c414d59f8552e4788b846c0d2b7f74743":
{"name":"$$RSC_SERVER_CACHE_0"}
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
import
{
cache
as
$$cache__
}
from
"private-next-rsc-cache-wrapper"
;
import
{
cache
as
$$reactCache__
}
from
"react"
;
const
$$RSC_SERVER_CACHE_0_INNER
=
async
function
foo
()
{
...
...
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/39/output.js
View file @
3aad67b7
/* __next_internal_action_entry_do_not_use__ {"c03128060c414d59f8552e4788b846c0d2b7f74743":
"$$RSC_SERVER_CACHE_0"
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
/* __next_internal_action_entry_do_not_use__ {"c03128060c414d59f8552e4788b846c0d2b7f74743":
{"name":"$$RSC_SERVER_CACHE_0"}
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
import
{
encryptActionBoundArgs
,
decryptActionBoundArgs
}
from
"private-next-rsc-action-encryption"
;
import
{
cache
as
$$cache__
}
from
"private-next-rsc-cache-wrapper"
;
import
{
cache
as
$$reactCache__
}
from
"react"
;
...
...
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/4/output.js
View file @
3aad67b7
/* __next_internal_action_entry_do_not_use__ {"001ab723c80dcca470e0410b4b2a2fc2bf21f41476":
"c","006a88810ecce4a4e8b59d53b8327d7e98bbf251d7":"$$RSC_SERVER_ACTION_0","006e7bc104e4d6e7fda190c4a51be969cfd0be6d6d":"a","00d1f7eb64271d7c601dfef7d4d7053de1c2ca4338":"b"
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
/* __next_internal_action_entry_do_not_use__ {"001ab723c80dcca470e0410b4b2a2fc2bf21f41476":
{"name":"c"},"006a88810ecce4a4e8b59d53b8327d7e98bbf251d7":{"name":"$$RSC_SERVER_ACTION_0"},"006e7bc104e4d6e7fda190c4a51be969cfd0be6d6d":{"name":"a"},"00d1f7eb64271d7c601dfef7d4d7053de1c2ca4338":{"name":"b"}
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
export
async
function
a
()
{}
export
async
function
b
()
{}
export
async
function
c
()
{}
...
...
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/40/output.js
View file @
3aad67b7
...
...
@@ -2,7 +2,7 @@ import { registerServerReference } from "private-next-rsc-server-reference";
import
{
encryptActionBoundArgs
,
decryptActionBoundArgs
}
from
"private-next-rsc-action-encryption"
;
import
{
cache
as
$$cache__
}
from
"private-next-rsc-cache-wrapper"
;
import
{
cache
as
$$reactCache__
}
from
"react"
;
/* __next_internal_action_entry_do_not_use__ {"6090b5db271335765a4b0eab01f044b381b5ebd5cd":
"$$RSC_SERVER_ACTION_1","e03128060c414d59f8552e4788b846c0d2b7f74743":"$$RSC_SERVER_CACHE_0"
} */
import
{
Form
}
from
'components'
;
/* __next_internal_action_entry_do_not_use__ {"6090b5db271335765a4b0eab01f044b381b5ebd5cd":
{"name":"$$RSC_SERVER_ACTION_1"},"e03128060c414d59f8552e4788b846c0d2b7f74743":{"name":"$$RSC_SERVER_CACHE_0"}
} */
import
{
Form
}
from
'components'
;
const
$$RSC_SERVER_CACHE_0_INNER
=
async
function
cache
([
$$ACTION_ARG_0
,
$$ACTION_ARG_1
],
e
)
{
const
f
=
$$ACTION_ARG_0
+
e
;
return
[
...
...
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/41/output.js
View file @
3aad67b7
/* __next_internal_action_entry_do_not_use__ {"406a88810ecce4a4e8b59d53b8327d7e98bbf251d7":
"$$RSC_SERVER_ACTION_0","c0951c375b4a6a6e89d67b743ec5808127cfde405d":"$$RSC_SERVER_CACHE_1"
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
/* __next_internal_action_entry_do_not_use__ {"406a88810ecce4a4e8b59d53b8327d7e98bbf251d7":
{"name":"$$RSC_SERVER_ACTION_0"},"c0951c375b4a6a6e89d67b743ec5808127cfde405d":{"name":"$$RSC_SERVER_CACHE_1"}
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
import
{
encryptActionBoundArgs
,
decryptActionBoundArgs
}
from
"private-next-rsc-action-encryption"
;
import
{
cache
as
$$cache__
}
from
"private-next-rsc-cache-wrapper"
;
import
{
cache
as
$$reactCache__
}
from
"react"
;
...
...
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/42/output.js
View file @
3aad67b7
/* __next_internal_action_entry_do_not_use__ {"c03128060c414d59f8552e4788b846c0d2b7f74743":
"$$RSC_SERVER_CACHE_0"
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
/* __next_internal_action_entry_do_not_use__ {"c03128060c414d59f8552e4788b846c0d2b7f74743":
{"name":"$$RSC_SERVER_CACHE_0"}
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
import
{
encryptActionBoundArgs
,
decryptActionBoundArgs
}
from
"private-next-rsc-action-encryption"
;
import
{
cache
as
$$cache__
}
from
"private-next-rsc-cache-wrapper"
;
import
{
cache
as
$$reactCache__
}
from
"react"
;
...
...
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/43/output.js
View file @
3aad67b7
...
...
@@ -2,7 +2,7 @@ import { registerServerReference } from "private-next-rsc-server-reference";
import
{
encryptActionBoundArgs
,
decryptActionBoundArgs
}
from
"private-next-rsc-action-encryption"
;
import
{
cache
as
$$cache__
}
from
"private-next-rsc-cache-wrapper"
;
import
{
cache
as
$$reactCache__
}
from
"react"
;
/* __next_internal_action_entry_do_not_use__ {"406a88810ecce4a4e8b59d53b8327d7e98bbf251d7":
"$$RSC_SERVER_ACTION_0","e0951c375b4a6a6e89d67b743ec5808127cfde405d":"$$RSC_SERVER_CACHE_1"
} */
import
{
Button
}
from
'components'
;
/* __next_internal_action_entry_do_not_use__ {"406a88810ecce4a4e8b59d53b8327d7e98bbf251d7":
{"name":"$$RSC_SERVER_ACTION_0"},"e0951c375b4a6a6e89d67b743ec5808127cfde405d":{"name":"$$RSC_SERVER_CACHE_1"}
} */
import
{
Button
}
from
'components'
;
const
secret
=
'my password is qwerty123'
;
export
const
$$RSC_SERVER_ACTION_0
=
async
function
action
(
$$ACTION_CLOSURE_BOUND
)
{
var
[
$$ACTION_ARG_0
]
=
await
decryptActionBoundArgs
(
"406a88810ecce4a4e8b59d53b8327d7e98bbf251d7"
,
$$ACTION_CLOSURE_BOUND
);
...
...
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/44/output.js
View file @
3aad67b7
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
/* __next_internal_action_entry_do_not_use__ {"001c36b06e398c97abe5d5d7ae8c672bfddf4e1b91":
"$$RSC_SERVER_ACTION_2","006a88810ecce4a4e8b59d53b8327d7e98bbf251d7":"$$RSC_SERVER_ACTION_0","0090b5db271335765a4b0eab01f044b381b5ebd5cd":"$$RSC_SERVER_ACTION_1","009ed0cc47abc4e1c64320cf42b74ae60b58c40f00":"$$RSC_SERVER_ACTION_3","00a9b2939c1f39073a6bed227fd20233064c8b7869":"$$RSC_SERVER_ACTION_4"
} */
import
{
Form
}
from
'components'
;
/* __next_internal_action_entry_do_not_use__ {"001c36b06e398c97abe5d5d7ae8c672bfddf4e1b91":
{"name":"$$RSC_SERVER_ACTION_2"},"006a88810ecce4a4e8b59d53b8327d7e98bbf251d7":{"name":"$$RSC_SERVER_ACTION_0"},"0090b5db271335765a4b0eab01f044b381b5ebd5cd":{"name":"$$RSC_SERVER_ACTION_1"},"009ed0cc47abc4e1c64320cf42b74ae60b58c40f00":{"name":"$$RSC_SERVER_ACTION_3"},"00a9b2939c1f39073a6bed227fd20233064c8b7869":{"name":"$$RSC_SERVER_ACTION_4"}
} */
import
{
Form
}
from
'components'
;
export
const
$$RSC_SERVER_ACTION_0
=
async
function
foo
()
{
return
'declarator arrow function expression'
;
};
...
...
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/45/output.js
View file @
3aad67b7
/* __next_internal_action_entry_do_not_use__ {"803128060c414d59f8552e4788b846c0d2b7f74743":
"$$RSC_SERVER_CACHE_0"
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
/* __next_internal_action_entry_do_not_use__ {"803128060c414d59f8552e4788b846c0d2b7f74743":
{"name":"$$RSC_SERVER_CACHE_0"}
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
import
{
cache
as
$$cache__
}
from
"private-next-rsc-cache-wrapper"
;
import
{
cache
as
$$reactCache__
}
from
"react"
;
// Expect no error here, this is allowed to be sync because it's not exported.
...
...
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/46/output.js
View file @
3aad67b7
...
...
@@ -3,7 +3,7 @@ import { cache as $$cache__ } from "private-next-rsc-cache-wrapper";
import
{
cache
as
$$reactCache__
}
from
"react"
;
// This is for testing the "information byte" of Server Action / Cache IDs.
// Should be 1 110000 0, which is "e0" in hex.
/* __next_internal_action_entry_do_not_use__ {"6090b5db271335765a4b0eab01f044b381b5ebd5cd":
"$$RSC_SERVER_ACTION_1","7c9ed0cc47abc4e1c64320cf42b74ae60b58c40f00":"$$RSC_SERVER_ACTION_3","7ea9b2939c1f39073a6bed227fd20233064c8b7869":"$$RSC_SERVER_ACTION_4","e03128060c414d59f8552e4788b846c0d2b7f74743":"$$RSC_SERVER_CACHE_0","ff471a5eb0be1c31686dd4ba938a80328b80b1615d":"$$RSC_SERVER_CACHE_5","ff69348c79fce073bae2f70f139565a2fda1c74c74":"$$RSC_SERVER_CACHE_2"
} */
const
$$RSC_SERVER_CACHE_0_INNER
=
async
function
f1
(
a
,
b
)
{
/* __next_internal_action_entry_do_not_use__ {"6090b5db271335765a4b0eab01f044b381b5ebd5cd":
{"name":"$$RSC_SERVER_ACTION_1"},"7c9ed0cc47abc4e1c64320cf42b74ae60b58c40f00":{"name":"$$RSC_SERVER_ACTION_3"},"7ea9b2939c1f39073a6bed227fd20233064c8b7869":{"name":"$$RSC_SERVER_ACTION_4"},"e03128060c414d59f8552e4788b846c0d2b7f74743":{"name":"$$RSC_SERVER_CACHE_0"},"ff471a5eb0be1c31686dd4ba938a80328b80b1615d":{"name":"$$RSC_SERVER_CACHE_5"},"ff69348c79fce073bae2f70f139565a2fda1c74c74":{"name":"$$RSC_SERVER_CACHE_2"}
} */
const
$$RSC_SERVER_CACHE_0_INNER
=
async
function
f1
(
a
,
b
)
{
return
[
a
,
b
...
...
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/47/output.js
View file @
3aad67b7
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
/* __next_internal_action_entry_do_not_use__ {"406a88810ecce4a4e8b59d53b8327d7e98bbf251d7":
"$$RSC_SERVER_ACTION_0"
} */
import
{
redirect
}
from
'navigation'
;
/* __next_internal_action_entry_do_not_use__ {"406a88810ecce4a4e8b59d53b8327d7e98bbf251d7":
{"name":"$$RSC_SERVER_ACTION_0"}
} */
import
{
redirect
}
from
'navigation'
;
export
const
$$RSC_SERVER_ACTION_0
=
async
function
action
(
formData
)
{
redirect
(
'/header?name='
+
formData
.
get
(
'name'
)
+
'&hidden-info='
+
formData
.
get
(
'hidden-info'
));
};
...
...
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/48/output.js
View file @
3aad67b7
/* __next_internal_action_entry_do_not_use__ {"60079087479e4c103d815f273878c7d1b8e902cc39":
"action3","70f14702b5a021dd117f7ec7a3c838f397c2046d3b":"action","7fc18c215a6b7cdc64bf709f3a714ffdef1bf9651d":"default","e03128060c414d59f8552e4788b846c0d2b7f74743":"$$RSC_SERVER_CACHE_0"
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
/* __next_internal_action_entry_do_not_use__ {"60079087479e4c103d815f273878c7d1b8e902cc39":
{"name":"action3"},"70f14702b5a021dd117f7ec7a3c838f397c2046d3b":{"name":"action"},"7fc18c215a6b7cdc64bf709f3a714ffdef1bf9651d":{"name":"default"},"e03128060c414d59f8552e4788b846c0d2b7f74743":{"name":"$$RSC_SERVER_CACHE_0"}
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
import
{
cache
as
$$cache__
}
from
"private-next-rsc-cache-wrapper"
;
import
{
cache
as
$$reactCache__
}
from
"react"
;
// Should be 0 111000 0, which is "70" in hex.
...
...
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/49/output.js
View file @
3aad67b7
/* __next_internal_action_entry_do_not_use__ {"f03128060c414d59f8552e4788b846c0d2b7f74743":
"$$RSC_SERVER_CACHE_0"
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
/* __next_internal_action_entry_do_not_use__ {"f03128060c414d59f8552e4788b846c0d2b7f74743":
{"name":"$$RSC_SERVER_CACHE_0"}
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
import
{
cache
as
$$cache__
}
from
"private-next-rsc-cache-wrapper"
;
import
{
cache
as
$$reactCache__
}
from
"react"
;
const
$$RSC_SERVER_CACHE_0_INNER
=
async
function
(
a
,
b
,
c
)
{
...
...
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/5/output.js
View file @
3aad67b7
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
import
{
encryptActionBoundArgs
,
decryptActionBoundArgs
}
from
"private-next-rsc-action-encryption"
;
/* __next_internal_action_entry_do_not_use__ {"406a88810ecce4a4e8b59d53b8327d7e98bbf251d7":
"$$RSC_SERVER_ACTION_0"
} */
import
{
Button
}
from
'components'
;
/* __next_internal_action_entry_do_not_use__ {"406a88810ecce4a4e8b59d53b8327d7e98bbf251d7":
{"name":"$$RSC_SERVER_ACTION_0"}
} */
import
{
Button
}
from
'components'
;
import
deleteFromDb
from
'db'
;
const
v1
=
'v1'
;
export
const
$$RSC_SERVER_ACTION_0
=
async
function
deleteItem
(
$$ACTION_CLOSURE_BOUND
)
{
...
...
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/50/output.js
View file @
3aad67b7
/* __next_internal_action_entry_do_not_use__ {"f03128060c414d59f8552e4788b846c0d2b7f74743":
"$$RSC_SERVER_CACHE_0"
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
/* __next_internal_action_entry_do_not_use__ {"f03128060c414d59f8552e4788b846c0d2b7f74743":
{"name":"$$RSC_SERVER_CACHE_0"}
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
import
{
cache
as
$$cache__
}
from
"private-next-rsc-cache-wrapper"
;
import
{
cache
as
$$reactCache__
}
from
"react"
;
const
$$RSC_SERVER_CACHE_0_INNER
=
async
function
(
a
,
b
,
c
)
{
...
...
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/51/output.js
View file @
3aad67b7
/* __next_internal_action_entry_do_not_use__ {"601c36b06e398c97abe5d5d7ae8c672bfddf4e1b91":
"$$RSC_SERVER_ACTION_2","6090b5db271335765a4b0eab01f044b381b5ebd5cd":"$$RSC_SERVER_ACTION_1","706a88810ecce4a4e8b59d53b8327d7e98bbf251d7":"$$RSC_SERVER_ACTION_0"
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
/* __next_internal_action_entry_do_not_use__ {"601c36b06e398c97abe5d5d7ae8c672bfddf4e1b91":
{"name":"$$RSC_SERVER_ACTION_2"},"6090b5db271335765a4b0eab01f044b381b5ebd5cd":{"name":"$$RSC_SERVER_ACTION_1"},"706a88810ecce4a4e8b59d53b8327d7e98bbf251d7":{"name":"$$RSC_SERVER_ACTION_0"}
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
export
const
$$RSC_SERVER_ACTION_0
=
async
function
(
a
,
b
,
c
)
{
return
<
div
>
{
a
}
...
...
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/52/output.js
View file @
3aad67b7
...
...
@@ -2,7 +2,7 @@ import { registerServerReference } from "private-next-rsc-server-reference";
import
{
encryptActionBoundArgs
,
decryptActionBoundArgs
}
from
"private-next-rsc-action-encryption"
;
import
{
cache
as
$$cache__
}
from
"private-next-rsc-cache-wrapper"
;
import
{
cache
as
$$reactCache__
}
from
"react"
;
/* __next_internal_action_entry_do_not_use__ {"409ed0cc47abc4e1c64320cf42b74ae60b58c40f00":
"$$RSC_SERVER_ACTION_3","601c36b06e398c97abe5d5d7ae8c672bfddf4e1b91":"$$RSC_SERVER_ACTION_2","c0951c375b4a6a6e89d67b743ec5808127cfde405d":"$$RSC_SERVER_CACHE_1","e03128060c414d59f8552e4788b846c0d2b7f74743":"$$RSC_SERVER_CACHE_0"
} */
import
{
Client
}
from
'components'
;
/* __next_internal_action_entry_do_not_use__ {"409ed0cc47abc4e1c64320cf42b74ae60b58c40f00":
{"name":"$$RSC_SERVER_ACTION_3"},"601c36b06e398c97abe5d5d7ae8c672bfddf4e1b91":{"name":"$$RSC_SERVER_ACTION_2"},"c0951c375b4a6a6e89d67b743ec5808127cfde405d":{"name":"$$RSC_SERVER_CACHE_1"},"e03128060c414d59f8552e4788b846c0d2b7f74743":{"name":"$$RSC_SERVER_CACHE_0"}
} */
import
{
Client
}
from
'components'
;
const
$$RSC_SERVER_CACHE_0_INNER
=
async
function
// Should be 1 110000 0, which is "e0" in hex (counts as two params,
// because of the encrypted bound args param)
fn1
([
$$ACTION_ARG_0
,
$$ACTION_ARG_1
],
c
)
{
...
...
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/53/output.js
View file @
3aad67b7
...
...
@@ -11,7 +11,7 @@ Object["defineProperty"]($$RSC_SERVER_CACHE_0, "name", {
});
export
const
$$RSC_SERVER_ACTION_1
=
async
function
bar
()
{};
registerServerReference
(
$$RSC_SERVER_ACTION_1
,
"0090b5db271335765a4b0eab01f044b381b5ebd5cd"
,
null
);
/* __next_internal_action_entry_do_not_use__ {"0090b5db271335765a4b0eab01f044b381b5ebd5cd":
"$$RSC_SERVER_ACTION_1","803128060c414d59f8552e4788b846c0d2b7f74743":"$$RSC_SERVER_CACHE_0"
} */
export
const
obj
=
{
/* __next_internal_action_entry_do_not_use__ {"0090b5db271335765a4b0eab01f044b381b5ebd5cd":
{"name":"$$RSC_SERVER_ACTION_1"},"803128060c414d59f8552e4788b846c0d2b7f74743":{"name":"$$RSC_SERVER_CACHE_0"}
} */
export
const
obj
=
{
foo
:
$$RSC_SERVER_CACHE_0
,
bar
:
$$RSC_SERVER_ACTION_1
};
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/54/output.js
View file @
3aad67b7
...
...
@@ -17,7 +17,7 @@ export const $$RSC_SERVER_ACTION_1 = async function bar($$ACTION_CLOSURE_BOUND)
console
.
log
(
$$ACTION_ARG_0
);
};
registerServerReference
(
$$RSC_SERVER_ACTION_1
,
"4090b5db271335765a4b0eab01f044b381b5ebd5cd"
,
null
);
/* __next_internal_action_entry_do_not_use__ {"4090b5db271335765a4b0eab01f044b381b5ebd5cd":
"$$RSC_SERVER_ACTION_1","c03128060c414d59f8552e4788b846c0d2b7f74743":"$$RSC_SERVER_CACHE_0"
} */
function
createObj
(
n
)
{
/* __next_internal_action_entry_do_not_use__ {"4090b5db271335765a4b0eab01f044b381b5ebd5cd":
{"name":"$$RSC_SERVER_ACTION_1"},"c03128060c414d59f8552e4788b846c0d2b7f74743":{"name":"$$RSC_SERVER_CACHE_0"}
} */
function
createObj
(
n
)
{
const
m
=
n
+
1
;
return
{
foo
:
$$RSC_SERVER_CACHE_0
.
bind
(
null
,
encryptActionBoundArgs
(
"c03128060c414d59f8552e4788b846c0d2b7f74743"
,
n
,
m
)),
...
...
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/55/output.js
View file @
3aad67b7
...
...
@@ -11,7 +11,7 @@ registerServerReference($$RSC_SERVER_CACHE_0, "803128060c414d59f8552e4788b846c0d
Object
[
"defineProperty"
](
$$RSC_SERVER_CACHE_0
,
"name"
,
{
value
:
"fetch"
});
/* __next_internal_action_entry_do_not_use__ {"803128060c414d59f8552e4788b846c0d2b7f74743":
"$$RSC_SERVER_CACHE_0"
} */
export
const
api
=
{
/* __next_internal_action_entry_do_not_use__ {"803128060c414d59f8552e4788b846c0d2b7f74743":
{"name":"$$RSC_SERVER_CACHE_0"}
} */
export
const
api
=
{
product
:
{
fetch
:
$$RSC_SERVER_CACHE_0
}
...
...
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/56/output.js
View file @
3aad67b7
/* __next_internal_action_entry_do_not_use__ {"ffaa88e24cee8047d167e47f4f374dbddc187e2899":
"fooCached"
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
/* __next_internal_action_entry_do_not_use__ {"ffaa88e24cee8047d167e47f4f374dbddc187e2899":
{"name":"fooCached"}
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
import
{
cache
as
$$cache__
}
from
"private-next-rsc-cache-wrapper"
;
import
{
cache
as
$$reactCache__
}
from
"react"
;
const
{
foo
:
fooCached
}
=
{
...
...
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/57/output.js
View file @
3aad67b7
...
...
@@ -15,7 +15,7 @@ export const $$RSC_SERVER_ACTION_1 = async function bar() {
console
.
log
(
42
);
};
registerServerReference
(
$$RSC_SERVER_ACTION_1
,
"0090b5db271335765a4b0eab01f044b381b5ebd5cd"
,
null
);
/* __next_internal_action_entry_do_not_use__ {"0090b5db271335765a4b0eab01f044b381b5ebd5cd":
"$$RSC_SERVER_ACTION_1","803128060c414d59f8552e4788b846c0d2b7f74743":"$$RSC_SERVER_CACHE_0"
} */
export
class
MyClass
{
/* __next_internal_action_entry_do_not_use__ {"0090b5db271335765a4b0eab01f044b381b5ebd5cd":
{"name":"$$RSC_SERVER_ACTION_1"},"803128060c414d59f8552e4788b846c0d2b7f74743":{"name":"$$RSC_SERVER_CACHE_0"}
} */
export
class
MyClass
{
static
foo
=
$$RSC_SERVER_CACHE_0
;
static
bar
=
$$RSC_SERVER_ACTION_1
;
}
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/58/output.js
View file @
3aad67b7
...
...
@@ -12,7 +12,7 @@ export var $$RSC_SERVER_CACHE_0 = $$reactCache__(function() {
return
$$cache__
(
"default"
,
"c03128060c414d59f8552e4788b846c0d2b7f74743"
,
1
,
$$RSC_SERVER_CACHE_0_INNER
,
Array
.
prototype
.
slice
.
call
(
arguments
,
0
,
1
));
});
registerServerReference
(
$$RSC_SERVER_CACHE_0
,
"c03128060c414d59f8552e4788b846c0d2b7f74743"
,
null
);
/* __next_internal_action_entry_do_not_use__ {"4090b5db271335765a4b0eab01f044b381b5ebd5cd":
"$$RSC_SERVER_ACTION_1","c03128060c414d59f8552e4788b846c0d2b7f74743":"$$RSC_SERVER_CACHE_0"
} */
function
createCachedFn
(
start
)
{
/* __next_internal_action_entry_do_not_use__ {"4090b5db271335765a4b0eab01f044b381b5ebd5cd":
{"name":"$$RSC_SERVER_ACTION_1"},"c03128060c414d59f8552e4788b846c0d2b7f74743":{"name":"$$RSC_SERVER_CACHE_0"}
} */
function
createCachedFn
(
start
)
{
function
fn
()
{
return
start
+
Math
.
random
();
}
...
...
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/59/output.js
View file @
3aad67b7
/* __next_internal_action_entry_do_not_use__ {"00b98e10c56c1bee7af6ff753c91a4c70ab0419f0a":
"test","407a40999f9833d2bb66a82d6a20a7f2a7810315f8":"createItem"
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
/* __next_internal_action_entry_do_not_use__ {"00b98e10c56c1bee7af6ff753c91a4c70ab0419f0a":
{"name":"test"},"407a40999f9833d2bb66a82d6a20a7f2a7810315f8":{"name":"createItem"}
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
import
{
db
}
from
'database'
;
export
const
createItem
=
async
(
title
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
...
...
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/6/output.js
View file @
3aad67b7
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
import
{
encryptActionBoundArgs
,
decryptActionBoundArgs
}
from
"private-next-rsc-action-encryption"
;
/* __next_internal_action_entry_do_not_use__ {"406a88810ecce4a4e8b59d53b8327d7e98bbf251d7":
"$$RSC_SERVER_ACTION_0"
} */
import
ANYTHING
from
'anything'
;
/* __next_internal_action_entry_do_not_use__ {"406a88810ecce4a4e8b59d53b8327d7e98bbf251d7":
{"name":"$$RSC_SERVER_ACTION_0"}
} */
import
ANYTHING
from
'anything'
;
import
f
,
{
f1
,
f2
}
from
'foo'
;
import
{
Button
}
from
'components'
;
const
f3
=
1
;
...
...
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/60/output.ts
View file @
3aad67b7
/* __next_internal_action_entry_do_not_use__ {"803128060c414d59f8552e4788b846c0d2b7f74743":
"$$RSC_SERVER_CACHE_0"
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
/* __next_internal_action_entry_do_not_use__ {"803128060c414d59f8552e4788b846c0d2b7f74743":
{"name":"$$RSC_SERVER_CACHE_0"}
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
import
{
cache
as
$$cache__
}
from
"private-next-rsc-cache-wrapper"
;
import
{
cache
as
$$reactCache__
}
from
"react"
;
// Exported TypeScript nodes should be ignored when validating that all module
...
...
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/61/output.js
View file @
3aad67b7
...
...
@@ -5,7 +5,7 @@ export const $$RSC_SERVER_ACTION_0 = async function action($$ACTION_CLOSURE_BOUN
console
.
log
(
$$ACTION_ARG_0
.
find
((
x
)
=>
x
===
$$ACTION_ARG_1
));
};
registerServerReference
(
$$RSC_SERVER_ACTION_0
,
"406a88810ecce4a4e8b59d53b8327d7e98bbf251d7"
,
null
);
/* __next_internal_action_entry_do_not_use__ {"406a88810ecce4a4e8b59d53b8327d7e98bbf251d7":
"$$RSC_SERVER_ACTION_0","4090b5db271335765a4b0eab01f044b381b5ebd5cd":"$$RSC_SERVER_ACTION_1"
} */
export
function
ComponentA
({
list
,
y
})
{
/* __next_internal_action_entry_do_not_use__ {"406a88810ecce4a4e8b59d53b8327d7e98bbf251d7":
{"name":"$$RSC_SERVER_ACTION_0"},"4090b5db271335765a4b0eab01f044b381b5ebd5cd":{"name":"$$RSC_SERVER_ACTION_1"}
} */
export
function
ComponentA
({
list
,
y
})
{
return
<
form
action
=
{
$$RSC_SERVER_ACTION_0
.
bind
(
null
,
encryptActionBoundArgs
(
"406a88810ecce4a4e8b59d53b8327d7e98bbf251d7"
,
list
,
y
))}
>
<
button
>
submit
<
/button
>
<
/form>
;
...
...
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/62/output.ts
View file @
3aad67b7
/* __next_internal_action_entry_do_not_use__ {"0095ef8ede0a8a4c822fcbdb018cb264731cb15281":
"actionA"
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
/* __next_internal_action_entry_do_not_use__ {"0095ef8ede0a8a4c822fcbdb018cb264731cb15281":
{"name":"actionA"}
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
export
type
X
=
string
;
// @ts-ignore -- that file does not exist
export
{
type
A
}
from
'./a'
;
...
...
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/63/output.tsx
View file @
3aad67b7
/* __next_internal_action_entry_do_not_use__ {"803128060c414d59f8552e4788b846c0d2b7f74743":
"$$RSC_SERVER_CACHE_0","80951c375b4a6a6e89d67b743ec5808127cfde405d":"$$RSC_SERVER_CACHE_1","ff1acff246876a467753785a92d1f95ac6fe32c9b9":"Other","ff27fadf3eeb97c777cea9f14a407b5c0b42ac65bb":"aliased","ff438bb59117ff1af890c80ca3e39d9e888fc93033":"wrapped","ff84effee663e5ce4e0948b55df129a8df904c67aa":"Sync","ff8fa22f08e492db15701f58a1458cc4ebf782f855":"getData","ff980f8c891ae27674b86a4804d306bdb3065c2e4f":"getStuff","ffc18c215a6b7cdc64bf709f3a714ffdef1bf9651d":"default"
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
/* __next_internal_action_entry_do_not_use__ {"803128060c414d59f8552e4788b846c0d2b7f74743":
{"name":"$$RSC_SERVER_CACHE_0"},"80951c375b4a6a6e89d67b743ec5808127cfde405d":{"name":"$$RSC_SERVER_CACHE_1"},"ff1acff246876a467753785a92d1f95ac6fe32c9b9":{"name":"Other"},"ff27fadf3eeb97c777cea9f14a407b5c0b42ac65bb":{"name":"aliased"},"ff438bb59117ff1af890c80ca3e39d9e888fc93033":{"name":"wrapped"},"ff84effee663e5ce4e0948b55df129a8df904c67aa":{"name":"Sync"},"ff8fa22f08e492db15701f58a1458cc4ebf782f855":{"name":"getData"},"ff980f8c891ae27674b86a4804d306bdb3065c2e4f":{"name":"getStuff"},"ffc18c215a6b7cdc64bf709f3a714ffdef1bf9651d":{"name":"default"}
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
import
{
cache
as
$$cache__
}
from
"private-next-rsc-cache-wrapper"
;
import
{
cache
as
$$reactCache__
}
from
"react"
;
// @ts-ignore
...
...
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/64/output.js
View file @
3aad67b7
/* __next_internal_action_entry_do_not_use__ {"ffc18c215a6b7cdc64bf709f3a714ffdef1bf9651d":
"default"
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
/* __next_internal_action_entry_do_not_use__ {"ffc18c215a6b7cdc64bf709f3a714ffdef1bf9651d":
{"name":"default"}
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
import
{
cache
as
$$cache__
}
from
"private-next-rsc-cache-wrapper"
;
import
{
cache
as
$$reactCache__
}
from
"react"
;
// @ts-ignore
...
...
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/65/output.js
View file @
3aad67b7
/* __next_internal_action_entry_do_not_use__ {"006a88810ecce4a4e8b59d53b8327d7e98bbf251d7":
"$$RSC_SERVER_ACTION_0","ffc18c215a6b7cdc64bf709f3a714ffdef1bf9651d":"default"
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
/* __next_internal_action_entry_do_not_use__ {"006a88810ecce4a4e8b59d53b8327d7e98bbf251d7":
{"name":"$$RSC_SERVER_ACTION_0"},"ffc18c215a6b7cdc64bf709f3a714ffdef1bf9651d":{"name":"default"}
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
import
{
cache
as
$$cache__
}
from
"private-next-rsc-cache-wrapper"
;
import
{
cache
as
$$reactCache__
}
from
"react"
;
// @ts-ignore
...
...
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/66/output.js
View file @
3aad67b7
/* __next_internal_action_entry_do_not_use__ {"0073f2cbccffb158eb2704761fc88fdbd0aaa102d0":
"📙"
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
/* __next_internal_action_entry_do_not_use__ {"0073f2cbccffb158eb2704761fc88fdbd0aaa102d0":
{"name":"📙"}
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
async
function
foo
()
{}
export
{
foo
as
'📙'
};
import
{
ensureServerEntryExports
}
from
"private-next-rsc-action-validate"
;
...
...
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/67/output.js
View file @
3aad67b7
/* __next_internal_action_entry_do_not_use__ {"803128060c414d59f8552e4788b846c0d2b7f74743":
"$$RSC_SERVER_CACHE_0"
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
/* __next_internal_action_entry_do_not_use__ {"803128060c414d59f8552e4788b846c0d2b7f74743":
{"name":"$$RSC_SERVER_CACHE_0"}
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
import
{
cache
as
$$cache__
}
from
"private-next-rsc-cache-wrapper"
;
import
{
cache
as
$$reactCache__
}
from
"react"
;
const
$$RSC_SERVER_CACHE_0_INNER
=
async
function
foo
()
{};
...
...
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/68/output.tsx
View file @
3aad67b7
/* __next_internal_action_entry_do_not_use__ {"ffab21efdafbe611287bc25c0462b1e0510d13e48b":
"foo","ffac840dcaf5e8197cb02b7f3a43c119b7a770b272":"bar"
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
/* __next_internal_action_entry_do_not_use__ {"ffab21efdafbe611287bc25c0462b1e0510d13e48b":
{"name":"foo"},"ffac840dcaf5e8197cb02b7f3a43c119b7a770b272":{"name":"bar"}
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
import
{
cache
as
$$cache__
}
from
"private-next-rsc-cache-wrapper"
;
import
{
cache
as
$$reactCache__
}
from
"react"
;
// @ts-ignore
...
...
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/7/output.js
View file @
3aad67b7
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
import
{
encryptActionBoundArgs
,
decryptActionBoundArgs
}
from
"private-next-rsc-action-encryption"
;
/* __next_internal_action_entry_do_not_use__ {"401c36b06e398c97abe5d5d7ae8c672bfddf4e1b91":
"$$RSC_SERVER_ACTION_2","406a88810ecce4a4e8b59d53b8327d7e98bbf251d7":"$$RSC_SERVER_ACTION_0","4090b5db271335765a4b0eab01f044b381b5ebd5cd":"$$RSC_SERVER_ACTION_1","409ed0cc47abc4e1c64320cf42b74ae60b58c40f00":"$$RSC_SERVER_ACTION_3"
} */
import
{
Button
}
from
'components'
;
/* __next_internal_action_entry_do_not_use__ {"401c36b06e398c97abe5d5d7ae8c672bfddf4e1b91":
{"name":"$$RSC_SERVER_ACTION_2"},"406a88810ecce4a4e8b59d53b8327d7e98bbf251d7":{"name":"$$RSC_SERVER_ACTION_0"},"4090b5db271335765a4b0eab01f044b381b5ebd5cd":{"name":"$$RSC_SERVER_ACTION_1"},"409ed0cc47abc4e1c64320cf42b74ae60b58c40f00":{"name":"$$RSC_SERVER_ACTION_3"}
} */
import
{
Button
}
from
'components'
;
import
deleteFromDb
from
'db'
;
export
const
$$RSC_SERVER_ACTION_0
=
async
function
deleteItem1
(
$$ACTION_CLOSURE_BOUND
)
{
var
[
$$ACTION_ARG_0
,
$$ACTION_ARG_1
,
$$ACTION_ARG_2
]
=
await
decryptActionBoundArgs
(
"406a88810ecce4a4e8b59d53b8327d7e98bbf251d7"
,
$$ACTION_CLOSURE_BOUND
);
...
...
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/70/output.js
View file @
3aad67b7
...
...
@@ -2,7 +2,7 @@ import { registerServerReference } from "private-next-rsc-server-reference";
import
{
cache
as
$$cache__
}
from
"private-next-rsc-cache-wrapper"
;
import
{
cache
as
$$reactCache__
}
from
"react"
;
// shadow the builtin Array global (used in the transform output)
/* __next_internal_action_entry_do_not_use__ {"c03128060c414d59f8552e4788b846c0d2b7f74743":
"$$RSC_SERVER_CACHE_0"
} */
const
Array1
=
{};
/* __next_internal_action_entry_do_not_use__ {"c03128060c414d59f8552e4788b846c0d2b7f74743":
{"name":"$$RSC_SERVER_CACHE_0"}
} */
const
Array1
=
{};
const
$$RSC_SERVER_CACHE_0_INNER
=
async
function
action
(
x
)
{
return
x
;
};
...
...
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/71/output.js
View file @
3aad67b7
...
...
@@ -2,7 +2,7 @@ import { registerServerReference } from "private-next-rsc-server-reference";
import
{
cache
as
$$cache__
}
from
"private-next-rsc-cache-wrapper"
;
import
{
cache
as
$$reactCache__
}
from
"react"
;
// shadow the builtin Object global (used in transform output)
/* __next_internal_action_entry_do_not_use__ {"803128060c414d59f8552e4788b846c0d2b7f74743":
"$$RSC_SERVER_CACHE_0"
} */
const
Object1
=
{};
/* __next_internal_action_entry_do_not_use__ {"803128060c414d59f8552e4788b846c0d2b7f74743":
{"name":"$$RSC_SERVER_CACHE_0"}
} */
const
Object1
=
{};
const
$$RSC_SERVER_CACHE_0_INNER
=
async
function
foo
()
{
return
1
;
};
...
...
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/8/output.js
View file @
3aad67b7
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
/* __next_internal_action_entry_do_not_use__ {"706a88810ecce4a4e8b59d53b8327d7e98bbf251d7":
"$$RSC_SERVER_ACTION_0"
} */
import
{
Button
}
from
'components'
;
/* __next_internal_action_entry_do_not_use__ {"706a88810ecce4a4e8b59d53b8327d7e98bbf251d7":
{"name":"$$RSC_SERVER_ACTION_0"}
} */
import
{
Button
}
from
'components'
;
export
const
$$RSC_SERVER_ACTION_0
=
async
function
myAction
(
a
,
b
,
c
)
{
// comment
'use strict'
;
...
...
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/9/output.js
View file @
3aad67b7
// app/send.ts
/* __next_internal_action_entry_do_not_use__ {"00050e3854b72b19e3c7e3966a67535543a90bf7e0":
"baz","00ab21efdafbe611287bc25c0462b1e0510d13e48b":"foo","00c18c215a6b7cdc64bf709f3a714ffdef1bf9651d":"default"
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
/* __next_internal_action_entry_do_not_use__ {"00050e3854b72b19e3c7e3966a67535543a90bf7e0":
{"name":"baz"},"00ab21efdafbe611287bc25c0462b1e0510d13e48b":{"name":"foo"},"00c18c215a6b7cdc64bf709f3a714ffdef1bf9651d":{"name":"default"}
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
async
function
foo
()
{}
export
{
foo
};
async
function
bar
()
{}
...
...
crates/next-custom-transforms/tests/fixture/source-maps/client-graph/development/server-actions/1/output.js
View file @
3aad67b7
/* __next_internal_action_entry_do_not_use__ {"001e1a741f85a589443b50c4863618893572cfb178":
"renamed","006c24672f968b0713dae406536f7dd6fe7d9a7fa0":"getHeaders","0073f2cbccffb158eb2704761fc88fdbd0aaa102d0":"📙","4028baf972d345b86b747ad0df73d75a0088a42214":"dec","403724e93433a7e950ef2f8479f31225e4b0dd0cc5":"redirectAction","40c18c215a6b7cdc64bf709f3a714ffdef1bf9651d":"default","40e44b877cc9d02556f56639c94229621ab0af0f5f":"inc","40f4ad91903d1bf66bfd4e0788888852badc924261":"slowInc"
} */
import
{
createServerReference
,
callServer
,
findSourceMapURL
}
from
"private-next-rsc-action-client-wrapper"
;
/* __next_internal_action_entry_do_not_use__ {"001e1a741f85a589443b50c4863618893572cfb178":
{"name":"renamed"},"006c24672f968b0713dae406536f7dd6fe7d9a7fa0":{"name":"getHeaders"},"0073f2cbccffb158eb2704761fc88fdbd0aaa102d0":{"name":"📙"},"4028baf972d345b86b747ad0df73d75a0088a42214":{"name":"dec"},"403724e93433a7e950ef2f8479f31225e4b0dd0cc5":{"name":"redirectAction"},"40c18c215a6b7cdc64bf709f3a714ffdef1bf9651d":{"name":"default"},"40e44b877cc9d02556f56639c94229621ab0af0f5f":{"name":"inc"},"40f4ad91903d1bf66bfd4e0788888852badc924261":{"name":"slowInc"}
} */
import
{
createServerReference
,
callServer
,
findSourceMapURL
}
from
"private-next-rsc-action-client-wrapper"
;
const
$$RSC_SERVER_ACTION_1
=
/*#__PURE__*/
createServerReference
(
"006c24672f968b0713dae406536f7dd6fe7d9a7fa0"
,
callServer
,
void
0
,
findSourceMapURL
,
"getHeaders"
);
export
{
$$RSC_SERVER_ACTION_1
as
getHeaders
};
const
$$RSC_SERVER_ACTION_2
=
/*#__PURE__*/
createServerReference
(
"40e44b877cc9d02556f56639c94229621ab0af0f5f"
,
callServer
,
void
0
,
findSourceMapURL
,
"inc"
);
...
...
crates/next-custom-transforms/tests/fixture/source-maps/client-graph/production/server-actions/1/output.js
View file @
3aad67b7
/* __next_internal_action_entry_do_not_use__ {"001e1a741f85a589443b50c4863618893572cfb178":
"renamed","006c24672f968b0713dae406536f7dd6fe7d9a7fa0":"getHeaders","0073f2cbccffb158eb2704761fc88fdbd0aaa102d0":"📙","4028baf972d345b86b747ad0df73d75a0088a42214":"dec","403724e93433a7e950ef2f8479f31225e4b0dd0cc5":"redirectAction","40c18c215a6b7cdc64bf709f3a714ffdef1bf9651d":"default","40e44b877cc9d02556f56639c94229621ab0af0f5f":"inc","40f4ad91903d1bf66bfd4e0788888852badc924261":"slowInc"
} */
import
{
createServerReference
,
callServer
,
findSourceMapURL
}
from
"private-next-rsc-action-client-wrapper"
;
/* __next_internal_action_entry_do_not_use__ {"001e1a741f85a589443b50c4863618893572cfb178":
{"name":"renamed"},"006c24672f968b0713dae406536f7dd6fe7d9a7fa0":{"name":"getHeaders"},"0073f2cbccffb158eb2704761fc88fdbd0aaa102d0":{"name":"📙"},"4028baf972d345b86b747ad0df73d75a0088a42214":{"name":"dec"},"403724e93433a7e950ef2f8479f31225e4b0dd0cc5":{"name":"redirectAction"},"40c18c215a6b7cdc64bf709f3a714ffdef1bf9651d":{"name":"default"},"40e44b877cc9d02556f56639c94229621ab0af0f5f":{"name":"inc"},"40f4ad91903d1bf66bfd4e0788888852badc924261":{"name":"slowInc"}
} */
import
{
createServerReference
,
callServer
,
findSourceMapURL
}
from
"private-next-rsc-action-client-wrapper"
;
const
$$RSC_SERVER_ACTION_1
=
/*#__PURE__*/
createServerReference
(
"006c24672f968b0713dae406536f7dd6fe7d9a7fa0"
,
callServer
,
void
0
,
findSourceMapURL
,
"getHeaders"
);
export
{
$$RSC_SERVER_ACTION_1
as
getHeaders
};
const
$$RSC_SERVER_ACTION_2
=
/*#__PURE__*/
createServerReference
(
"40e44b877cc9d02556f56639c94229621ab0af0f5f"
,
callServer
,
void
0
,
findSourceMapURL
,
"inc"
);
...
...
crates/next-custom-transforms/tests/fixture/source-maps/server-graph/use-cache/1/output.js
View file @
3aad67b7
/* __next_internal_action_entry_do_not_use__ {"803128060c414d59f8552e4788b846c0d2b7f74743":
"$$RSC_SERVER_CACHE_0","80951c375b4a6a6e89d67b743ec5808127cfde405d":"$$RSC_SERVER_CACHE_1"
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
/* __next_internal_action_entry_do_not_use__ {"803128060c414d59f8552e4788b846c0d2b7f74743":
{"name":"$$RSC_SERVER_CACHE_0"},"80951c375b4a6a6e89d67b743ec5808127cfde405d":{"name":"$$RSC_SERVER_CACHE_1"}
} */
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
import
{
cache
as
$$cache__
}
from
"private-next-rsc-cache-wrapper"
;
import
{
cache
as
$$reactCache__
}
from
"react"
;
const
$$RSC_SERVER_CACHE_0_INNER
=
async
function
foo
()
{};
...
...
crates/next-custom-transforms/tests/fixture/source-maps/turbopack/client-graph/development/server-actions/1/output.js
View file @
3aad67b7
"use turbopack no side effects"
;
export
{
getHeaders
}
from
"data:text/javascript,%2F%2A%20__next_internal_action_entry_do_not_use__%20%5B%7B%22006c24672f968b0713dae406536f7dd6fe7d9a7fa0%22%3A%
22getHeaders%22%7D%2C%22%2Fapp%2Fitem.js%22%2C%22%22%5D%20%2A%2F%22use%20turbopack%20no%20side%20effects%22%3Bimport%7BcreateServerReference%2CcallServer%2CfindSourceMapURL%7Dfrom%22private-next-rsc-action-client-wrapper%22%3Bconst%20%24%24RSC_SERVER_ACTION_1%3D%2F%2A%23__PURE__%2A%2FcreateServerReference%28%22006c24672f968b0713dae406536f7dd6fe7d9a7fa0%22%2CcallServer%2Cvoid%200%2CfindSourceMapURL%2C%22getHeaders%22%29%3Bexport%7B%24%24RSC_SERVER_ACTION_1%20as%20getHeaders%7D%3B%0A%2F%2F%23%20sourceMappingURL%3Ddata%3Aapplication%2Fjson%3Bbase64%2CeyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImlucHV0LmpzIl0sInNvdXJjZXNDb250ZW50IjpbIid1c2Ugc2VydmVyJ1xuXG5pbXBvcnQgJ3NlcnZlci1vbmx5J1xuXG5pbXBvcnQgeyByZWRpcmVjdCB9IGZyb20gJ25leHQvbmF2aWdhdGlvbidcbmltcG9ydCB7IGhlYWRlcnMsIGNvb2tpZXMgfSBmcm9tICduZXh0L2hlYWRlcnMnXG5cbmV4cG9ydCBhc3luYyBmdW5jdGlvbiBnZXRIZWFkZXJzKCkge1xuICBjb25zb2xlLmxvZygnYWNjZXB0IGhlYWRlcjonLCAoYXdhaXQgaGVhZGVycygpKS5nZXQoJ2FjY2VwdCcpKVxuICA7KGF3YWl0IGNvb2tpZXMoKSkuc2V0KCd0ZXN0LWNvb2tpZScsIERhdGUubm93KCkpXG59XG5cbmV4cG9ydCBhc3luYyBmdW5jdGlvbiBpbmModmFsdWUpIHtcbiAgcmV0dXJuIHZhbHVlICsgMVxufVxuXG5leHBvcnQgYXN5bmMgZnVuY3Rpb24gc2xvd0luYyh2YWx1ZSkge1xuICBhd2FpdCBuZXcgUHJvbWlzZSgocmVzb2x2ZSkgPT4gc2V0VGltZW91dChyZXNvbHZlLCAxMDAwMCkpXG4gIHJldHVybiB2YWx1ZSArIDFcbn1cblxuZXhwb3J0IGFzeW5jIGZ1bmN0aW9uIGRlYyh2YWx1ZSkge1xuICByZXR1cm4gdmFsdWUgLSAxXG59XG5cbmV4cG9ydCBkZWZhdWx0IGFzeW5jIGZ1bmN0aW9uICh2YWx1ZSkge1xuICBjb25zb2xlLmxvZygndGhpc19pc19zZW5zaXRpdmVfaW5mbycpXG4gIHJldHVybiB2YWx1ZSAqIDJcbn1cblxuZXhwb3J0IGFzeW5jIGZ1bmN0aW9uIHJlZGlyZWN0QWN0aW9uKHBhdGgpIHtcbiAgcmVkaXJlY3QocGF0aClcbn1cblxuY29uc3Qgb3JpZ2luYWwgPSBhc3luYyAoKSA9PiB7XG4gIGNvbnNvbGUubG9nKCdhY3Rpb24nKVxufVxuZXhwb3J0IHsgb3JpZ2luYWwgYXMgcmVuYW1lZCB9XG5cbmV4cG9ydCB7IGZvbyBhcyAn8J%2BTmScgfVxuYXN5bmMgZnVuY3Rpb24gZm9vKCkge31cbiJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiMlF
BT3NCLHVMQUFBIn0%3D"
;
export
{
inc
}
from
"data:text/javascript,%2F%2A%20__next_internal_action_entry_do_not_use__%20%5B%7B%2240e44b877cc9d02556f56639c94229621ab0af0f5f%22%3A%
22inc%22%7D%2C%22%2Fapp%2Fitem.js%22%2C%22%22%5D%20%2A%2F%22use%20turbopack%20no%20side%20effects%22%3Bimport%7BcreateServerReference%2CcallServer%2CfindSourceMapURL%7Dfrom%22private-next-rsc-action-client-wrapper%22%3Bconst%20%24%24RSC_SERVER_ACTION_2%3D%2F%2A%23__PURE__%2A%2FcreateServerReference%28%2240e44b877cc9d02556f56639c94229621ab0af0f5f%22%2CcallServer%2Cvoid%200%2CfindSourceMapURL%2C%22inc%22%29%3Bexport%7B%24%24RSC_SERVER_ACTION_2%20as%20inc%7D%3B%0A%2F%2F%23%20sourceMappingURL%3Ddata%3Aapplication%2Fjson%3Bbase64%2CeyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImlucHV0LmpzIl0sInNvdXJjZXNDb250ZW50IjpbIid1c2Ugc2VydmVyJ1xuXG5pbXBvcnQgJ3NlcnZlci1vbmx5J1xuXG5pbXBvcnQgeyByZWRpcmVjdCB9IGZyb20gJ25leHQvbmF2aWdhdGlvbidcbmltcG9ydCB7IGhlYWRlcnMsIGNvb2tpZXMgfSBmcm9tICduZXh0L2hlYWRlcnMnXG5cbmV4cG9ydCBhc3luYyBmdW5jdGlvbiBnZXRIZWFkZXJzKCkge1xuICBjb25zb2xlLmxvZygnYWNjZXB0IGhlYWRlcjonLCAoYXdhaXQgaGVhZGVycygpKS5nZXQoJ2FjY2VwdCcpKVxuICA7KGF3YWl0IGNvb2tpZXMoKSkuc2V0KCd0ZXN0LWNvb2tpZScsIERhdGUubm93KCkpXG59XG5cbmV4cG9ydCBhc3luYyBmdW5jdGlvbiBpbmModmFsdWUpIHtcbiAgcmV0dXJuIHZhbHVlICsgMVxufVxuXG5leHBvcnQgYXN5bmMgZnVuY3Rpb24gc2xvd0luYyh2YWx1ZSkge1xuICBhd2FpdCBuZXcgUHJvbWlzZSgocmVzb2x2ZSkgPT4gc2V0VGltZW91dChyZXNvbHZlLCAxMDAwMCkpXG4gIHJldHVybiB2YWx1ZSArIDFcbn1cblxuZXhwb3J0IGFzeW5jIGZ1bmN0aW9uIGRlYyh2YWx1ZSkge1xuICByZXR1cm4gdmFsdWUgLSAxXG59XG5cbmV4cG9ydCBkZWZhdWx0IGFzeW5jIGZ1bmN0aW9uICh2YWx1ZSkge1xuICBjb25zb2xlLmxvZygndGhpc19pc19zZW5zaXRpdmVfaW5mbycpXG4gIHJldHVybiB2YWx1ZSAqIDJcbn1cblxuZXhwb3J0IGFzeW5jIGZ1bmN0aW9uIHJlZGlyZWN0QWN0aW9uKHBhdGgpIHtcbiAgcmVkaXJlY3QocGF0aClcbn1cblxuY29uc3Qgb3JpZ2luYWwgPSBhc3luYyAoKSA9PiB7XG4gIGNvbnNvbGUubG9nKCdhY3Rpb24nKVxufVxuZXhwb3J0IHsgb3JpZ2luYWwgYXMgcmVuYW1lZCB9XG5cbmV4cG9ydCB7IGZvbyBhcyAn8J%2BTmScgfVxuYXN5bmMgZnVuY3Rpb24gZm9vKCkge31cbiJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoib1
FBWXNCLGdMQUFBIn0%3D"
;
export
{
slowInc
}
from
"data:text/javascript,%2F%2A%20__next_internal_action_entry_do_not_use__%20%5B%7B%2240f4ad91903d1bf66bfd4e0788888852badc924261%22%3A%
22slowInc%22%7D%2C%22%2Fapp%2Fitem.js%22%2C%22%22%5D%20%2A%2F%22use%20turbopack%20no%20side%20effects%22%3Bimport%7BcreateServerReference%2CcallServer%2CfindSourceMapURL%7Dfrom%22private-next-rsc-action-client-wrapper%22%3Bconst%20%24%24RSC_SERVER_ACTION_3%3D%2F%2A%23__PURE__%2A%2FcreateServerReference%28%2240f4ad91903d1bf66bfd4e0788888852badc924261%22%2CcallServer%2Cvoid%200%2CfindSourceMapURL%2C%22slowInc%22%29%3Bexport%7B%24%24RSC_SERVER_ACTION_3%20as%20slowInc%7D%3B%0A%2F%2F%23%20sourceMappingURL%3Ddata%3Aapplication%2Fjson%3Bbase64%2CeyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImlucHV0LmpzIl0sInNvdXJjZXNDb250ZW50IjpbIid1c2Ugc2VydmVyJ1xuXG5pbXBvcnQgJ3NlcnZlci1vbmx5J1xuXG5pbXBvcnQgeyByZWRpcmVjdCB9IGZyb20gJ25leHQvbmF2aWdhdGlvbidcbmltcG9ydCB7IGhlYWRlcnMsIGNvb2tpZXMgfSBmcm9tICduZXh0L2hlYWRlcnMnXG5cbmV4cG9ydCBhc3luYyBmdW5jdGlvbiBnZXRIZWFkZXJzKCkge1xuICBjb25zb2xlLmxvZygnYWNjZXB0IGhlYWRlcjonLCAoYXdhaXQgaGVhZGVycygpKS5nZXQoJ2FjY2VwdCcpKVxuICA7KGF3YWl0IGNvb2tpZXMoKSkuc2V0KCd0ZXN0LWNvb2tpZScsIERhdGUubm93KCkpXG59XG5cbmV4cG9ydCBhc3luYyBmdW5jdGlvbiBpbmModmFsdWUpIHtcbiAgcmV0dXJuIHZhbHVlICsgMVxufVxuXG5leHBvcnQgYXN5bmMgZnVuY3Rpb24gc2xvd0luYyh2YWx1ZSkge1xuICBhd2FpdCBuZXcgUHJvbWlzZSgocmVzb2x2ZSkgPT4gc2V0VGltZW91dChyZXNvbHZlLCAxMDAwMCkpXG4gIHJldHVybiB2YWx1ZSArIDFcbn1cblxuZXhwb3J0IGFzeW5jIGZ1bmN0aW9uIGRlYyh2YWx1ZSkge1xuICByZXR1cm4gdmFsdWUgLSAxXG59XG5cbmV4cG9ydCBkZWZhdWx0IGFzeW5jIGZ1bmN0aW9uICh2YWx1ZSkge1xuICBjb25zb2xlLmxvZygndGhpc19pc19zZW5zaXRpdmVfaW5mbycpXG4gIHJldHVybiB2YWx1ZSAqIDJcbn1cblxuZXhwb3J0IGFzeW5jIGZ1bmN0aW9uIHJlZGlyZWN0QWN0aW9uKHBhdGgpIHtcbiAgcmVkaXJlY3QocGF0aClcbn1cblxuY29uc3Qgb3JpZ2luYWwgPSBhc3luYyAoKSA9PiB7XG4gIGNvbnNvbGUubG9nKCdhY3Rpb24nKVxufVxuZXhwb3J0IHsgb3JpZ2luYWwgYXMgcmVuYW1lZCB9XG5cbmV4cG9ydCB7IGZvbyBhcyAn8J%2BTmScgfVxuYXN5bmMgZnVuY3Rpb24gZm9vKCkge31cbiJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoid1F
BZ0JzQixvTEFBQSJ9"
;
export
{
dec
}
from
"data:text/javascript,%2F%2A%20__next_internal_action_entry_do_not_use__%20%5B%7B%224028baf972d345b86b747ad0df73d75a0088a42214%22%3A%
22dec%22%7D%2C%22%2Fapp%2Fitem.js%22%2C%22%22%5D%20%2A%2F%22use%20turbopack%20no%20side%20effects%22%3Bimport%7BcreateServerReference%2CcallServer%2CfindSourceMapURL%7Dfrom%22private-next-rsc-action-client-wrapper%22%3Bconst%20%24%24RSC_SERVER_ACTION_4%3D%2F%2A%23__PURE__%2A%2FcreateServerReference%28%224028baf972d345b86b747ad0df73d75a0088a42214%22%2CcallServer%2Cvoid%200%2CfindSourceMapURL%2C%22dec%22%29%3Bexport%7B%24%24RSC_SERVER_ACTION_4%20as%20dec%7D%3B%0A%2F%2F%23%20sourceMappingURL%3Ddata%3Aapplication%2Fjson%3Bbase64%2CeyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImlucHV0LmpzIl0sInNvdXJjZXNDb250ZW50IjpbIid1c2Ugc2VydmVyJ1xuXG5pbXBvcnQgJ3NlcnZlci1vbmx5J1xuXG5pbXBvcnQgeyByZWRpcmVjdCB9IGZyb20gJ25leHQvbmF2aWdhdGlvbidcbmltcG9ydCB7IGhlYWRlcnMsIGNvb2tpZXMgfSBmcm9tICduZXh0L2hlYWRlcnMnXG5cbmV4cG9ydCBhc3luYyBmdW5jdGlvbiBnZXRIZWFkZXJzKCkge1xuICBjb25zb2xlLmxvZygnYWNjZXB0IGhlYWRlcjonLCAoYXdhaXQgaGVhZGVycygpKS5nZXQoJ2FjY2VwdCcpKVxuICA7KGF3YWl0IGNvb2tpZXMoKSkuc2V0KCd0ZXN0LWNvb2tpZScsIERhdGUubm93KCkpXG59XG5cbmV4cG9ydCBhc3luYyBmdW5jdGlvbiBpbmModmFsdWUpIHtcbiAgcmV0dXJuIHZhbHVlICsgMVxufVxuXG5leHBvcnQgYXN5bmMgZnVuY3Rpb24gc2xvd0luYyh2YWx1ZSkge1xuICBhd2FpdCBuZXcgUHJvbWlzZSgocmVzb2x2ZSkgPT4gc2V0VGltZW91dChyZXNvbHZlLCAxMDAwMCkpXG4gIHJldHVybiB2YWx1ZSArIDFcbn1cblxuZXhwb3J0IGFzeW5jIGZ1bmN0aW9uIGRlYyh2YWx1ZSkge1xuICByZXR1cm4gdmFsdWUgLSAxXG59XG5cbmV4cG9ydCBkZWZhdWx0IGFzeW5jIGZ1bmN0aW9uICh2YWx1ZSkge1xuICBjb25zb2xlLmxvZygndGhpc19pc19zZW5zaXRpdmVfaW5mbycpXG4gIHJldHVybiB2YWx1ZSAqIDJcbn1cblxuZXhwb3J0IGFzeW5jIGZ1bmN0aW9uIHJlZGlyZWN0QWN0aW9uKHBhdGgpIHtcbiAgcmVkaXJlY3QocGF0aClcbn1cblxuY29uc3Qgb3JpZ2luYWwgPSBhc3luYyAoKSA9PiB7XG4gIGNvbnNvbGUubG9nKCdhY3Rpb24nKVxufVxuZXhwb3J0IHsgb3JpZ2luYWwgYXMgcmVuYW1lZCB9XG5cbmV4cG9ydCB7IGZvbyBhcyAn8J%2BTmScgfVxuYXN5bmMgZnVuY3Rpb24gZm9vKCkge31cbiJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoib1
FBcUJzQixnTEFBQSJ9"
;
export
{
default
}
from
"data:text/javascript,%2F%2A%20__next_internal_action_entry_do_not_use__%20%5B%7B%2240c18c215a6b7cdc64bf709f3a714ffdef1bf9651d%22%3A%
22default%22%7D%2C%22%2Fapp%2Fitem.js%22%2C%22%22%5D%20%2A%2F%22use%20turbopack%20no%20side%20effects%22%3Bimport%7BcreateServerReference%2CcallServer%2CfindSourceMapURL%7Dfrom%22private-next-rsc-action-client-wrapper%22%3Bexport%20default%20createServerReference%28%2240c18c215a6b7cdc64bf709f3a714ffdef1bf9651d%22%2CcallServer%2Cvoid%200%2CfindSourceMapURL%2C%22default%22%29%3B%0A%2F%2F%23%20sourceMappingURL%3Ddata%3Aapplication%2Fjson%3Bbase64%2CeyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImlucHV0LmpzIl0sInNvdXJjZXNDb250ZW50IjpbIid1c2Ugc2VydmVyJ1xuXG5pbXBvcnQgJ3NlcnZlci1vbmx5J1xuXG5pbXBvcnQgeyByZWRpcmVjdCB9IGZyb20gJ25leHQvbmF2aWdhdGlvbidcbmltcG9ydCB7IGhlYWRlcnMsIGNvb2tpZXMgfSBmcm9tICduZXh0L2hlYWRlcnMnXG5cbmV4cG9ydCBhc3luYyBmdW5jdGlvbiBnZXRIZWFkZXJzKCkge1xuICBjb25zb2xlLmxvZygnYWNjZXB0IGhlYWRlcjonLCAoYXdhaXQgaGVhZGVycygpKS5nZXQoJ2FjY2VwdCcpKVxuICA7KGF3YWl0IGNvb2tpZXMoKSkuc2V0KCd0ZXN0LWNvb2tpZScsIERhdGUubm93KCkpXG59XG5cbmV4cG9ydCBhc3luYyBmdW5jdGlvbiBpbmModmFsdWUpIHtcbiAgcmV0dXJuIHZhbHVlICsgMVxufVxuXG5leHBvcnQgYXN5bmMgZnVuY3Rpb24gc2xvd0luYyh2YWx1ZSkge1xuICBhd2FpdCBuZXcgUHJvbWlzZSgocmVzb2x2ZSkgPT4gc2V0VGltZW91dChyZXNvbHZlLCAxMDAwMCkpXG4gIHJldHVybiB2YWx1ZSArIDFcbn1cblxuZXhwb3J0IGFzeW5jIGZ1bmN0aW9uIGRlYyh2YWx1ZSkge1xuICByZXR1cm4gdmFsdWUgLSAxXG59XG5cbmV4cG9ydCBkZWZhdWx0IGFzeW5jIGZ1bmN0aW9uICh2YWx1ZSkge1xuICBjb25zb2xlLmxvZygndGhpc19pc19zZW5zaXRpdmVfaW5mbycpXG4gIHJldHVybiB2YWx1ZSAqIDJcbn1cblxuZXhwb3J0IGFzeW5jIGZ1bmN0aW9uIHJlZGlyZWN0QWN0aW9uKHBhdGgpIHtcbiAgcmVkaXJlY3QocGF0aClcbn1cblxuY29uc3Qgb3JpZ2luYWwgPSBhc3luYyAoKSA9PiB7XG4gIGNvbnNvbGUubG9nKCdhY3Rpb24nKVxufVxuZXhwb3J0IHsgb3JpZ2luYWwgYXMgcmVuYW1lZCB9XG5cbmV4cG9ydCB7IGZvbyBhcyAn8J%2BTmScgfVxuYXN5bmMgZnVuY3Rpb24gZm9vKCkge31cbiJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiaV
JBeUJlIn0%3D"
;
export
{
redirectAction
}
from
"data:text/javascript,%2F%2A%20__next_internal_action_entry_do_not_use__%20%5B%7B%22403724e93433a7e950ef2f8479f31225e4b0dd0cc5%22%3A%
22redirectAction%22%7D%2C%22%2Fapp%2Fitem.js%22%2C%22%22%5D%20%2A%2F%22use%20turbopack%20no%20side%20effects%22%3Bimport%7BcreateServerReference%2CcallServer%2CfindSourceMapURL%7Dfrom%22private-next-rsc-action-client-wrapper%22%3Bconst%20%24%24RSC_SERVER_ACTION_5%3D%2F%2A%23__PURE__%2A%2FcreateServerReference%28%22403724e93433a7e950ef2f8479f31225e4b0dd0cc5%22%2CcallServer%2Cvoid%200%2CfindSourceMapURL%2C%22redirectAction%22%29%3Bexport%7B%24%24RSC_SERVER_ACTION_5%20as%20redirectAction%7D%3B%0A%2F%2F%23%20sourceMappingURL%3Ddata%3Aapplication%2Fjson%3Bbase64%2CeyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImlucHV0LmpzIl0sInNvdXJjZXNDb250ZW50IjpbIid1c2Ugc2VydmVyJ1xuXG5pbXBvcnQgJ3NlcnZlci1vbmx5J1xuXG5pbXBvcnQgeyByZWRpcmVjdCB9IGZyb20gJ25leHQvbmF2aWdhdGlvbidcbmltcG9ydCB7IGhlYWRlcnMsIGNvb2tpZXMgfSBmcm9tICduZXh0L2hlYWRlcnMnXG5cbmV4cG9ydCBhc3luYyBmdW5jdGlvbiBnZXRIZWFkZXJzKCkge1xuICBjb25zb2xlLmxvZygnYWNjZXB0IGhlYWRlcjonLCAoYXdhaXQgaGVhZGVycygpKS5nZXQoJ2FjY2VwdCcpKVxuICA7KGF3YWl0IGNvb2tpZXMoKSkuc2V0KCd0ZXN0LWNvb2tpZScsIERhdGUubm93KCkpXG59XG5cbmV4cG9ydCBhc3luYyBmdW5jdGlvbiBpbmModmFsdWUpIHtcbiAgcmV0dXJuIHZhbHVlICsgMVxufVxuXG5leHBvcnQgYXN5bmMgZnVuY3Rpb24gc2xvd0luYyh2YWx1ZSkge1xuICBhd2FpdCBuZXcgUHJvbWlzZSgocmVzb2x2ZSkgPT4gc2V0VGltZW91dChyZXNvbHZlLCAxMDAwMCkpXG4gIHJldHVybiB2YWx1ZSArIDFcbn1cblxuZXhwb3J0IGFzeW5jIGZ1bmN0aW9uIGRlYyh2YWx1ZSkge1xuICByZXR1cm4gdmFsdWUgLSAxXG59XG5cbmV4cG9ydCBkZWZhdWx0IGFzeW5jIGZ1bmN0aW9uICh2YWx1ZSkge1xuICBjb25zb2xlLmxvZygndGhpc19pc19zZW5zaXRpdmVfaW5mbycpXG4gIHJldHVybiB2YWx1ZSAqIDJcbn1cblxuZXhwb3J0IGFzeW5jIGZ1bmN0aW9uIHJlZGlyZWN0QWN0aW9uKHBhdGgpIHtcbiAgcmVkaXJlY3QocGF0aClcbn1cblxuY29uc3Qgb3JpZ2luYWwgPSBhc3luYyAoKSA9PiB7XG4gIGNvbnNvbGUubG9nKCdhY3Rpb24nKVxufVxuZXhwb3J0IHsgb3JpZ2luYWwgYXMgcmVuYW1lZCB9XG5cbmV4cG9ydCB7IGZvbyBhcyAn8J%2BTmScgfVxuYXN5bmMgZnVuY3Rpb24gZm9vKCkge31cbiJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiK1F
BOEJzQiwyTEFBQSJ9"
;
export
{
renamed
}
from
"data:text/javascript,%2F%2A%20__next_internal_action_entry_do_not_use__%20%5B%7B%22001e1a741f85a589443b50c4863618893572cfb178%22%3A%
22renamed%22%7D%2C%22%2Fapp%2Fitem.js%22%2C%22%22%5D%20%2A%2F%22use%20turbopack%20no%20side%20effects%22%3Bimport%7BcreateServerReference%2CcallServer%2CfindSourceMapURL%7Dfrom%22private-next-rsc-action-client-wrapper%22%3Bconst%20%24%24RSC_SERVER_ACTION_6%3D%2F%2A%23__PURE__%2A%2FcreateServerReference%28%22001e1a741f85a589443b50c4863618893572cfb178%22%2CcallServer%2Cvoid%200%2CfindSourceMapURL%2C%22renamed%22%29%3Bexport%7B%24%24RSC_SERVER_ACTION_6%20as%20renamed%7D%3B%0A%2F%2F%23%20sourceMappingURL%3Ddata%3Aapplication%2Fjson%3Bbase64%2CeyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImlucHV0LmpzIl0sInNvdXJjZXNDb250ZW50IjpbIid1c2Ugc2VydmVyJ1xuXG5pbXBvcnQgJ3NlcnZlci1vbmx5J1xuXG5pbXBvcnQgeyByZWRpcmVjdCB9IGZyb20gJ25leHQvbmF2aWdhdGlvbidcbmltcG9ydCB7IGhlYWRlcnMsIGNvb2tpZXMgfSBmcm9tICduZXh0L2hlYWRlcnMnXG5cbmV4cG9ydCBhc3luYyBmdW5jdGlvbiBnZXRIZWFkZXJzKCkge1xuICBjb25zb2xlLmxvZygnYWNjZXB0IGhlYWRlcjonLCAoYXdhaXQgaGVhZGVycygpKS5nZXQoJ2FjY2VwdCcpKVxuICA7KGF3YWl0IGNvb2tpZXMoKSkuc2V0KCd0ZXN0LWNvb2tpZScsIERhdGUubm93KCkpXG59XG5cbmV4cG9ydCBhc3luYyBmdW5jdGlvbiBpbmModmFsdWUpIHtcbiAgcmV0dXJuIHZhbHVlICsgMVxufVxuXG5leHBvcnQgYXN5bmMgZnVuY3Rpb24gc2xvd0luYyh2YWx1ZSkge1xuICBhd2FpdCBuZXcgUHJvbWlzZSgocmVzb2x2ZSkgPT4gc2V0VGltZW91dChyZXNvbHZlLCAxMDAwMCkpXG4gIHJldHVybiB2YWx1ZSArIDFcbn1cblxuZXhwb3J0IGFzeW5jIGZ1bmN0aW9uIGRlYyh2YWx1ZSkge1xuICByZXR1cm4gdmFsdWUgLSAxXG59XG5cbmV4cG9ydCBkZWZhdWx0IGFzeW5jIGZ1bmN0aW9uICh2YWx1ZSkge1xuICBjb25zb2xlLmxvZygndGhpc19pc19zZW5zaXRpdmVfaW5mbycpXG4gIHJldHVybiB2YWx1ZSAqIDJcbn1cblxuZXhwb3J0IGFzeW5jIGZ1bmN0aW9uIHJlZGlyZWN0QWN0aW9uKHBhdGgpIHtcbiAgcmVkaXJlY3QocGF0aClcbn1cblxuY29uc3Qgb3JpZ2luYWwgPSBhc3luYyAoKSA9PiB7XG4gIGNvbnNvbGUubG9nKCdhY3Rpb24nKVxufVxuZXhwb3J0IHsgb3JpZ2luYWwgYXMgcmVuYW1lZCB9XG5cbmV4cG9ydCB7IGZvbyBhcyAn8J%2BTmScgfVxuYXN5bmMgZnVuY3Rpb24gZm9vKCkge31cbiJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoid1F
Ba0NNLG9MQUdlIn0%3D"
;
export
{
"📙"
}
from
"data:text/javascript,%2F%2A%20__next_internal_action_entry_do_not_use__%20%5B%7B%220073f2cbccffb158eb2704761fc88fdbd0aaa102d0%22%3A%
22%F0%9F%93%99%22%7D%2C%22%2Fapp%2Fitem.js%22%2C%22%22%5D%20%2A%2F%22use%20turbopack%20no%20side%20effects%22%3Bimport%7BcreateServerReference%2CcallServer%2CfindSourceMapURL%7Dfrom%22private-next-rsc-action-client-wrapper%22%3Bconst%20%24%24RSC_SERVER_ACTION_7%3D%2F%2A%23__PURE__%2A%2FcreateServerReference%28%220073f2cbccffb158eb2704761fc88fdbd0aaa102d0%22%2CcallServer%2Cvoid%200%2CfindSourceMapURL%2C%22%F0%9F%93%99%22%29%3Bexport%7B%24%24RSC_SERVER_ACTION_7%20as%20%22%F0%9F%93%99%22%7D%3B%0A%2F%2F%23%20sourceMappingURL%3Ddata%3Aapplication%2Fjson%3Bbase64%2CeyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImlucHV0LmpzIl0sInNvdXJjZXNDb250ZW50IjpbIid1c2Ugc2VydmVyJ1xuXG5pbXBvcnQgJ3NlcnZlci1vbmx5J1xuXG5pbXBvcnQgeyByZWRpcmVjdCB9IGZyb20gJ25leHQvbmF2aWdhdGlvbidcbmltcG9ydCB7IGhlYWRlcnMsIGNvb2tpZXMgfSBmcm9tICduZXh0L2hlYWRlcnMnXG5cbmV4cG9ydCBhc3luYyBmdW5jdGlvbiBnZXRIZWFkZXJzKCkge1xuICBjb25zb2xlLmxvZygnYWNjZXB0IGhlYWRlcjonLCAoYXdhaXQgaGVhZGVycygpKS5nZXQoJ2FjY2VwdCcpKVxuICA7KGF3YWl0IGNvb2tpZXMoKSkuc2V0KCd0ZXN0LWNvb2tpZScsIERhdGUubm93KCkpXG59XG5cbmV4cG9ydCBhc3luYyBmdW5jdGlvbiBpbmModmFsdWUpIHtcbiAgcmV0dXJuIHZhbHVlICsgMVxufVxuXG5leHBvcnQgYXN5bmMgZnVuY3Rpb24gc2xvd0luYyh2YWx1ZSkge1xuICBhd2FpdCBuZXcgUHJvbWlzZSgocmVzb2x2ZSkgPT4gc2V0VGltZW91dChyZXNvbHZlLCAxMDAwMCkpXG4gIHJldHVybiB2YWx1ZSArIDFcbn1cblxuZXhwb3J0IGFzeW5jIGZ1bmN0aW9uIGRlYyh2YWx1ZSkge1xuICByZXR1cm4gdmFsdWUgLSAxXG59XG5cbmV4cG9ydCBkZWZhdWx0IGFzeW5jIGZ1bmN0aW9uICh2YWx1ZSkge1xuICBjb25zb2xlLmxvZygndGhpc19pc19zZW5zaXRpdmVfaW5mbycpXG4gIHJldHVybiB2YWx1ZSAqIDJcbn1cblxuZXhwb3J0IGFzeW5jIGZ1bmN0aW9uIHJlZGlyZWN0QWN0aW9uKHBhdGgpIHtcbiAgcmVkaXJlY3QocGF0aClcbn1cblxuY29uc3Qgb3JpZ2luYWwgPSBhc3luYyAoKSA9PiB7XG4gIGNvbnNvbGUubG9nKCdhY3Rpb24nKVxufVxuZXhwb3J0IHsgb3JpZ2luYWwgYXMgcmVuYW1lZCB9XG5cbmV4cG9ydCB7IGZvbyBhcyAn8J%2BTmScgfVxuYXN5bmMgZnVuY3Rpb24gZm9vKCkge31cbiJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoibV
FBd0NlLCtLQURDIn0%3D"
;
export
{
getHeaders
}
from
"data:text/javascript,%2F%2A%20__next_internal_action_entry_do_not_use__%20%5B%7B%22006c24672f968b0713dae406536f7dd6fe7d9a7fa0%22%3A%
7B%22name%22%3A%22getHeaders%22%7D%7D%2C%22%2Fapp%2Fitem.js%22%2C%22%22%5D%20%2A%2F%22use%20turbopack%20no%20side%20effects%22%3Bimport%7BcreateServerReference%2CcallServer%2CfindSourceMapURL%7Dfrom%22private-next-rsc-action-client-wrapper%22%3Bconst%20%24%24RSC_SERVER_ACTION_1%3D%2F%2A%23__PURE__%2A%2FcreateServerReference%28%22006c24672f968b0713dae406536f7dd6fe7d9a7fa0%22%2CcallServer%2Cvoid%200%2CfindSourceMapURL%2C%22getHeaders%22%29%3Bexport%7B%24%24RSC_SERVER_ACTION_1%20as%20getHeaders%7D%3B%0A%2F%2F%23%20sourceMappingURL%3Ddata%3Aapplication%2Fjson%3Bbase64%2CeyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImlucHV0LmpzIl0sInNvdXJjZXNDb250ZW50IjpbIid1c2Ugc2VydmVyJ1xuXG5pbXBvcnQgJ3NlcnZlci1vbmx5J1xuXG5pbXBvcnQgeyByZWRpcmVjdCB9IGZyb20gJ25leHQvbmF2aWdhdGlvbidcbmltcG9ydCB7IGhlYWRlcnMsIGNvb2tpZXMgfSBmcm9tICduZXh0L2hlYWRlcnMnXG5cbmV4cG9ydCBhc3luYyBmdW5jdGlvbiBnZXRIZWFkZXJzKCkge1xuICBjb25zb2xlLmxvZygnYWNjZXB0IGhlYWRlcjonLCAoYXdhaXQgaGVhZGVycygpKS5nZXQoJ2FjY2VwdCcpKVxuICA7KGF3YWl0IGNvb2tpZXMoKSkuc2V0KCd0ZXN0LWNvb2tpZScsIERhdGUubm93KCkpXG59XG5cbmV4cG9ydCBhc3luYyBmdW5jdGlvbiBpbmModmFsdWUpIHtcbiAgcmV0dXJuIHZhbHVlICsgMVxufVxuXG5leHBvcnQgYXN5bmMgZnVuY3Rpb24gc2xvd0luYyh2YWx1ZSkge1xuICBhd2FpdCBuZXcgUHJvbWlzZSgocmVzb2x2ZSkgPT4gc2V0VGltZW91dChyZXNvbHZlLCAxMDAwMCkpXG4gIHJldHVybiB2YWx1ZSArIDFcbn1cblxuZXhwb3J0IGFzeW5jIGZ1bmN0aW9uIGRlYyh2YWx1ZSkge1xuICByZXR1cm4gdmFsdWUgLSAxXG59XG5cbmV4cG9ydCBkZWZhdWx0IGFzeW5jIGZ1bmN0aW9uICh2YWx1ZSkge1xuICBjb25zb2xlLmxvZygndGhpc19pc19zZW5zaXRpdmVfaW5mbycpXG4gIHJldHVybiB2YWx1ZSAqIDJcbn1cblxuZXhwb3J0IGFzeW5jIGZ1bmN0aW9uIHJlZGlyZWN0QWN0aW9uKHBhdGgpIHtcbiAgcmVkaXJlY3QocGF0aClcbn1cblxuY29uc3Qgb3JpZ2luYWwgPSBhc3luYyAoKSA9PiB7XG4gIGNvbnNvbGUubG9nKCdhY3Rpb24nKVxufVxuZXhwb3J0IHsgb3JpZ2luYWwgYXMgcmVuYW1lZCB9XG5cbmV4cG9ydCB7IGZvbyBhcyAn8J%2BTmScgfVxuYXN5bmMgZnVuY3Rpb24gZm9vKCkge31cbiJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoib1J
BT3NCLHVMQUFBIn0%3D"
;
export
{
inc
}
from
"data:text/javascript,%2F%2A%20__next_internal_action_entry_do_not_use__%20%5B%7B%2240e44b877cc9d02556f56639c94229621ab0af0f5f%22%3A%
7B%22name%22%3A%22inc%22%7D%7D%2C%22%2Fapp%2Fitem.js%22%2C%22%22%5D%20%2A%2F%22use%20turbopack%20no%20side%20effects%22%3Bimport%7BcreateServerReference%2CcallServer%2CfindSourceMapURL%7Dfrom%22private-next-rsc-action-client-wrapper%22%3Bconst%20%24%24RSC_SERVER_ACTION_2%3D%2F%2A%23__PURE__%2A%2FcreateServerReference%28%2240e44b877cc9d02556f56639c94229621ab0af0f5f%22%2CcallServer%2Cvoid%200%2CfindSourceMapURL%2C%22inc%22%29%3Bexport%7B%24%24RSC_SERVER_ACTION_2%20as%20inc%7D%3B%0A%2F%2F%23%20sourceMappingURL%3Ddata%3Aapplication%2Fjson%3Bbase64%2CeyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImlucHV0LmpzIl0sInNvdXJjZXNDb250ZW50IjpbIid1c2Ugc2VydmVyJ1xuXG5pbXBvcnQgJ3NlcnZlci1vbmx5J1xuXG5pbXBvcnQgeyByZWRpcmVjdCB9IGZyb20gJ25leHQvbmF2aWdhdGlvbidcbmltcG9ydCB7IGhlYWRlcnMsIGNvb2tpZXMgfSBmcm9tICduZXh0L2hlYWRlcnMnXG5cbmV4cG9ydCBhc3luYyBmdW5jdGlvbiBnZXRIZWFkZXJzKCkge1xuICBjb25zb2xlLmxvZygnYWNjZXB0IGhlYWRlcjonLCAoYXdhaXQgaGVhZGVycygpKS5nZXQoJ2FjY2VwdCcpKVxuICA7KGF3YWl0IGNvb2tpZXMoKSkuc2V0KCd0ZXN0LWNvb2tpZScsIERhdGUubm93KCkpXG59XG5cbmV4cG9ydCBhc3luYyBmdW5jdGlvbiBpbmModmFsdWUpIHtcbiAgcmV0dXJuIHZhbHVlICsgMVxufVxuXG5leHBvcnQgYXN5bmMgZnVuY3Rpb24gc2xvd0luYyh2YWx1ZSkge1xuICBhd2FpdCBuZXcgUHJvbWlzZSgocmVzb2x2ZSkgPT4gc2V0VGltZW91dChyZXNvbHZlLCAxMDAwMCkpXG4gIHJldHVybiB2YWx1ZSArIDFcbn1cblxuZXhwb3J0IGFzeW5jIGZ1bmN0aW9uIGRlYyh2YWx1ZSkge1xuICByZXR1cm4gdmFsdWUgLSAxXG59XG5cbmV4cG9ydCBkZWZhdWx0IGFzeW5jIGZ1bmN0aW9uICh2YWx1ZSkge1xuICBjb25zb2xlLmxvZygndGhpc19pc19zZW5zaXRpdmVfaW5mbycpXG4gIHJldHVybiB2YWx1ZSAqIDJcbn1cblxuZXhwb3J0IGFzeW5jIGZ1bmN0aW9uIHJlZGlyZWN0QWN0aW9uKHBhdGgpIHtcbiAgcmVkaXJlY3QocGF0aClcbn1cblxuY29uc3Qgb3JpZ2luYWwgPSBhc3luYyAoKSA9PiB7XG4gIGNvbnNvbGUubG9nKCdhY3Rpb24nKVxufVxuZXhwb3J0IHsgb3JpZ2luYWwgYXMgcmVuYW1lZCB9XG5cbmV4cG9ydCB7IGZvbyBhcyAn8J%2BTmScgfVxuYXN5bmMgZnVuY3Rpb24gZm9vKCkge31cbiJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiNl
FBWXNCLGdMQUFBIn0%3D"
;
export
{
slowInc
}
from
"data:text/javascript,%2F%2A%20__next_internal_action_entry_do_not_use__%20%5B%7B%2240f4ad91903d1bf66bfd4e0788888852badc924261%22%3A%
7B%22name%22%3A%22slowInc%22%7D%7D%2C%22%2Fapp%2Fitem.js%22%2C%22%22%5D%20%2A%2F%22use%20turbopack%20no%20side%20effects%22%3Bimport%7BcreateServerReference%2CcallServer%2CfindSourceMapURL%7Dfrom%22private-next-rsc-action-client-wrapper%22%3Bconst%20%24%24RSC_SERVER_ACTION_3%3D%2F%2A%23__PURE__%2A%2FcreateServerReference%28%2240f4ad91903d1bf66bfd4e0788888852badc924261%22%2CcallServer%2Cvoid%200%2CfindSourceMapURL%2C%22slowInc%22%29%3Bexport%7B%24%24RSC_SERVER_ACTION_3%20as%20slowInc%7D%3B%0A%2F%2F%23%20sourceMappingURL%3Ddata%3Aapplication%2Fjson%3Bbase64%2CeyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImlucHV0LmpzIl0sInNvdXJjZXNDb250ZW50IjpbIid1c2Ugc2VydmVyJ1xuXG5pbXBvcnQgJ3NlcnZlci1vbmx5J1xuXG5pbXBvcnQgeyByZWRpcmVjdCB9IGZyb20gJ25leHQvbmF2aWdhdGlvbidcbmltcG9ydCB7IGhlYWRlcnMsIGNvb2tpZXMgfSBmcm9tICduZXh0L2hlYWRlcnMnXG5cbmV4cG9ydCBhc3luYyBmdW5jdGlvbiBnZXRIZWFkZXJzKCkge1xuICBjb25zb2xlLmxvZygnYWNjZXB0IGhlYWRlcjonLCAoYXdhaXQgaGVhZGVycygpKS5nZXQoJ2FjY2VwdCcpKVxuICA7KGF3YWl0IGNvb2tpZXMoKSkuc2V0KCd0ZXN0LWNvb2tpZScsIERhdGUubm93KCkpXG59XG5cbmV4cG9ydCBhc3luYyBmdW5jdGlvbiBpbmModmFsdWUpIHtcbiAgcmV0dXJuIHZhbHVlICsgMVxufVxuXG5leHBvcnQgYXN5bmMgZnVuY3Rpb24gc2xvd0luYyh2YWx1ZSkge1xuICBhd2FpdCBuZXcgUHJvbWlzZSgocmVzb2x2ZSkgPT4gc2V0VGltZW91dChyZXNvbHZlLCAxMDAwMCkpXG4gIHJldHVybiB2YWx1ZSArIDFcbn1cblxuZXhwb3J0IGFzeW5jIGZ1bmN0aW9uIGRlYyh2YWx1ZSkge1xuICByZXR1cm4gdmFsdWUgLSAxXG59XG5cbmV4cG9ydCBkZWZhdWx0IGFzeW5jIGZ1bmN0aW9uICh2YWx1ZSkge1xuICBjb25zb2xlLmxvZygndGhpc19pc19zZW5zaXRpdmVfaW5mbycpXG4gIHJldHVybiB2YWx1ZSAqIDJcbn1cblxuZXhwb3J0IGFzeW5jIGZ1bmN0aW9uIHJlZGlyZWN0QWN0aW9uKHBhdGgpIHtcbiAgcmVkaXJlY3QocGF0aClcbn1cblxuY29uc3Qgb3JpZ2luYWwgPSBhc3luYyAoKSA9PiB7XG4gIGNvbnNvbGUubG9nKCdhY3Rpb24nKVxufVxuZXhwb3J0IHsgb3JpZ2luYWwgYXMgcmVuYW1lZCB9XG5cbmV4cG9ydCB7IGZvbyBhcyAn8J%2BTmScgfVxuYXN5bmMgZnVuY3Rpb24gZm9vKCkge31cbiJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiaVJ
BZ0JzQixvTEFBQSJ9"
;
export
{
dec
}
from
"data:text/javascript,%2F%2A%20__next_internal_action_entry_do_not_use__%20%5B%7B%224028baf972d345b86b747ad0df73d75a0088a42214%22%3A%
7B%22name%22%3A%22dec%22%7D%7D%2C%22%2Fapp%2Fitem.js%22%2C%22%22%5D%20%2A%2F%22use%20turbopack%20no%20side%20effects%22%3Bimport%7BcreateServerReference%2CcallServer%2CfindSourceMapURL%7Dfrom%22private-next-rsc-action-client-wrapper%22%3Bconst%20%24%24RSC_SERVER_ACTION_4%3D%2F%2A%23__PURE__%2A%2FcreateServerReference%28%224028baf972d345b86b747ad0df73d75a0088a42214%22%2CcallServer%2Cvoid%200%2CfindSourceMapURL%2C%22dec%22%29%3Bexport%7B%24%24RSC_SERVER_ACTION_4%20as%20dec%7D%3B%0A%2F%2F%23%20sourceMappingURL%3Ddata%3Aapplication%2Fjson%3Bbase64%2CeyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImlucHV0LmpzIl0sInNvdXJjZXNDb250ZW50IjpbIid1c2Ugc2VydmVyJ1xuXG5pbXBvcnQgJ3NlcnZlci1vbmx5J1xuXG5pbXBvcnQgeyByZWRpcmVjdCB9IGZyb20gJ25leHQvbmF2aWdhdGlvbidcbmltcG9ydCB7IGhlYWRlcnMsIGNvb2tpZXMgfSBmcm9tICduZXh0L2hlYWRlcnMnXG5cbmV4cG9ydCBhc3luYyBmdW5jdGlvbiBnZXRIZWFkZXJzKCkge1xuICBjb25zb2xlLmxvZygnYWNjZXB0IGhlYWRlcjonLCAoYXdhaXQgaGVhZGVycygpKS5nZXQoJ2FjY2VwdCcpKVxuICA7KGF3YWl0IGNvb2tpZXMoKSkuc2V0KCd0ZXN0LWNvb2tpZScsIERhdGUubm93KCkpXG59XG5cbmV4cG9ydCBhc3luYyBmdW5jdGlvbiBpbmModmFsdWUpIHtcbiAgcmV0dXJuIHZhbHVlICsgMVxufVxuXG5leHBvcnQgYXN5bmMgZnVuY3Rpb24gc2xvd0luYyh2YWx1ZSkge1xuICBhd2FpdCBuZXcgUHJvbWlzZSgocmVzb2x2ZSkgPT4gc2V0VGltZW91dChyZXNvbHZlLCAxMDAwMCkpXG4gIHJldHVybiB2YWx1ZSArIDFcbn1cblxuZXhwb3J0IGFzeW5jIGZ1bmN0aW9uIGRlYyh2YWx1ZSkge1xuICByZXR1cm4gdmFsdWUgLSAxXG59XG5cbmV4cG9ydCBkZWZhdWx0IGFzeW5jIGZ1bmN0aW9uICh2YWx1ZSkge1xuICBjb25zb2xlLmxvZygndGhpc19pc19zZW5zaXRpdmVfaW5mbycpXG4gIHJldHVybiB2YWx1ZSAqIDJcbn1cblxuZXhwb3J0IGFzeW5jIGZ1bmN0aW9uIHJlZGlyZWN0QWN0aW9uKHBhdGgpIHtcbiAgcmVkaXJlY3QocGF0aClcbn1cblxuY29uc3Qgb3JpZ2luYWwgPSBhc3luYyAoKSA9PiB7XG4gIGNvbnNvbGUubG9nKCdhY3Rpb24nKVxufVxuZXhwb3J0IHsgb3JpZ2luYWwgYXMgcmVuYW1lZCB9XG5cbmV4cG9ydCB7IGZvbyBhcyAn8J%2BTmScgfVxuYXN5bmMgZnVuY3Rpb24gZm9vKCkge31cbiJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiNl
FBcUJzQixnTEFBQSJ9"
;
export
{
default
}
from
"data:text/javascript,%2F%2A%20__next_internal_action_entry_do_not_use__%20%5B%7B%2240c18c215a6b7cdc64bf709f3a714ffdef1bf9651d%22%3A%
7B%22name%22%3A%22default%22%7D%7D%2C%22%2Fapp%2Fitem.js%22%2C%22%22%5D%20%2A%2F%22use%20turbopack%20no%20side%20effects%22%3Bimport%7BcreateServerReference%2CcallServer%2CfindSourceMapURL%7Dfrom%22private-next-rsc-action-client-wrapper%22%3Bexport%20default%20createServerReference%28%2240c18c215a6b7cdc64bf709f3a714ffdef1bf9651d%22%2CcallServer%2Cvoid%200%2CfindSourceMapURL%2C%22default%22%29%3B%0A%2F%2F%23%20sourceMappingURL%3Ddata%3Aapplication%2Fjson%3Bbase64%2CeyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImlucHV0LmpzIl0sInNvdXJjZXNDb250ZW50IjpbIid1c2Ugc2VydmVyJ1xuXG5pbXBvcnQgJ3NlcnZlci1vbmx5J1xuXG5pbXBvcnQgeyByZWRpcmVjdCB9IGZyb20gJ25leHQvbmF2aWdhdGlvbidcbmltcG9ydCB7IGhlYWRlcnMsIGNvb2tpZXMgfSBmcm9tICduZXh0L2hlYWRlcnMnXG5cbmV4cG9ydCBhc3luYyBmdW5jdGlvbiBnZXRIZWFkZXJzKCkge1xuICBjb25zb2xlLmxvZygnYWNjZXB0IGhlYWRlcjonLCAoYXdhaXQgaGVhZGVycygpKS5nZXQoJ2FjY2VwdCcpKVxuICA7KGF3YWl0IGNvb2tpZXMoKSkuc2V0KCd0ZXN0LWNvb2tpZScsIERhdGUubm93KCkpXG59XG5cbmV4cG9ydCBhc3luYyBmdW5jdGlvbiBpbmModmFsdWUpIHtcbiAgcmV0dXJuIHZhbHVlICsgMVxufVxuXG5leHBvcnQgYXN5bmMgZnVuY3Rpb24gc2xvd0luYyh2YWx1ZSkge1xuICBhd2FpdCBuZXcgUHJvbWlzZSgocmVzb2x2ZSkgPT4gc2V0VGltZW91dChyZXNvbHZlLCAxMDAwMCkpXG4gIHJldHVybiB2YWx1ZSArIDFcbn1cblxuZXhwb3J0IGFzeW5jIGZ1bmN0aW9uIGRlYyh2YWx1ZSkge1xuICByZXR1cm4gdmFsdWUgLSAxXG59XG5cbmV4cG9ydCBkZWZhdWx0IGFzeW5jIGZ1bmN0aW9uICh2YWx1ZSkge1xuICBjb25zb2xlLmxvZygndGhpc19pc19zZW5zaXRpdmVfaW5mbycpXG4gIHJldHVybiB2YWx1ZSAqIDJcbn1cblxuZXhwb3J0IGFzeW5jIGZ1bmN0aW9uIHJlZGlyZWN0QWN0aW9uKHBhdGgpIHtcbiAgcmVkaXJlY3QocGF0aClcbn1cblxuY29uc3Qgb3JpZ2luYWwgPSBhc3luYyAoKSA9PiB7XG4gIGNvbnNvbGUubG9nKCdhY3Rpb24nKVxufVxuZXhwb3J0IHsgb3JpZ2luYWwgYXMgcmVuYW1lZCB9XG5cbmV4cG9ydCB7IGZvbyBhcyAn8J%2BTmScgfVxuYXN5bmMgZnVuY3Rpb24gZm9vKCkge31cbiJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiMF
JBeUJlIn0%3D"
;
export
{
redirectAction
}
from
"data:text/javascript,%2F%2A%20__next_internal_action_entry_do_not_use__%20%5B%7B%22403724e93433a7e950ef2f8479f31225e4b0dd0cc5%22%3A%
7B%22name%22%3A%22redirectAction%22%7D%7D%2C%22%2Fapp%2Fitem.js%22%2C%22%22%5D%20%2A%2F%22use%20turbopack%20no%20side%20effects%22%3Bimport%7BcreateServerReference%2CcallServer%2CfindSourceMapURL%7Dfrom%22private-next-rsc-action-client-wrapper%22%3Bconst%20%24%24RSC_SERVER_ACTION_5%3D%2F%2A%23__PURE__%2A%2FcreateServerReference%28%22403724e93433a7e950ef2f8479f31225e4b0dd0cc5%22%2CcallServer%2Cvoid%200%2CfindSourceMapURL%2C%22redirectAction%22%29%3Bexport%7B%24%24RSC_SERVER_ACTION_5%20as%20redirectAction%7D%3B%0A%2F%2F%23%20sourceMappingURL%3Ddata%3Aapplication%2Fjson%3Bbase64%2CeyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImlucHV0LmpzIl0sInNvdXJjZXNDb250ZW50IjpbIid1c2Ugc2VydmVyJ1xuXG5pbXBvcnQgJ3NlcnZlci1vbmx5J1xuXG5pbXBvcnQgeyByZWRpcmVjdCB9IGZyb20gJ25leHQvbmF2aWdhdGlvbidcbmltcG9ydCB7IGhlYWRlcnMsIGNvb2tpZXMgfSBmcm9tICduZXh0L2hlYWRlcnMnXG5cbmV4cG9ydCBhc3luYyBmdW5jdGlvbiBnZXRIZWFkZXJzKCkge1xuICBjb25zb2xlLmxvZygnYWNjZXB0IGhlYWRlcjonLCAoYXdhaXQgaGVhZGVycygpKS5nZXQoJ2FjY2VwdCcpKVxuICA7KGF3YWl0IGNvb2tpZXMoKSkuc2V0KCd0ZXN0LWNvb2tpZScsIERhdGUubm93KCkpXG59XG5cbmV4cG9ydCBhc3luYyBmdW5jdGlvbiBpbmModmFsdWUpIHtcbiAgcmV0dXJuIHZhbHVlICsgMVxufVxuXG5leHBvcnQgYXN5bmMgZnVuY3Rpb24gc2xvd0luYyh2YWx1ZSkge1xuICBhd2FpdCBuZXcgUHJvbWlzZSgocmVzb2x2ZSkgPT4gc2V0VGltZW91dChyZXNvbHZlLCAxMDAwMCkpXG4gIHJldHVybiB2YWx1ZSArIDFcbn1cblxuZXhwb3J0IGFzeW5jIGZ1bmN0aW9uIGRlYyh2YWx1ZSkge1xuICByZXR1cm4gdmFsdWUgLSAxXG59XG5cbmV4cG9ydCBkZWZhdWx0IGFzeW5jIGZ1bmN0aW9uICh2YWx1ZSkge1xuICBjb25zb2xlLmxvZygndGhpc19pc19zZW5zaXRpdmVfaW5mbycpXG4gIHJldHVybiB2YWx1ZSAqIDJcbn1cblxuZXhwb3J0IGFzeW5jIGZ1bmN0aW9uIHJlZGlyZWN0QWN0aW9uKHBhdGgpIHtcbiAgcmVkaXJlY3QocGF0aClcbn1cblxuY29uc3Qgb3JpZ2luYWwgPSBhc3luYyAoKSA9PiB7XG4gIGNvbnNvbGUubG9nKCdhY3Rpb24nKVxufVxuZXhwb3J0IHsgb3JpZ2luYWwgYXMgcmVuYW1lZCB9XG5cbmV4cG9ydCB7IGZvbyBhcyAn8J%2BTmScgfVxuYXN5bmMgZnVuY3Rpb24gZm9vKCkge31cbiJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoid1J
BOEJzQiwyTEFBQSJ9"
;
export
{
renamed
}
from
"data:text/javascript,%2F%2A%20__next_internal_action_entry_do_not_use__%20%5B%7B%22001e1a741f85a589443b50c4863618893572cfb178%22%3A%
7B%22name%22%3A%22renamed%22%7D%7D%2C%22%2Fapp%2Fitem.js%22%2C%22%22%5D%20%2A%2F%22use%20turbopack%20no%20side%20effects%22%3Bimport%7BcreateServerReference%2CcallServer%2CfindSourceMapURL%7Dfrom%22private-next-rsc-action-client-wrapper%22%3Bconst%20%24%24RSC_SERVER_ACTION_6%3D%2F%2A%23__PURE__%2A%2FcreateServerReference%28%22001e1a741f85a589443b50c4863618893572cfb178%22%2CcallServer%2Cvoid%200%2CfindSourceMapURL%2C%22renamed%22%29%3Bexport%7B%24%24RSC_SERVER_ACTION_6%20as%20renamed%7D%3B%0A%2F%2F%23%20sourceMappingURL%3Ddata%3Aapplication%2Fjson%3Bbase64%2CeyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImlucHV0LmpzIl0sInNvdXJjZXNDb250ZW50IjpbIid1c2Ugc2VydmVyJ1xuXG5pbXBvcnQgJ3NlcnZlci1vbmx5J1xuXG5pbXBvcnQgeyByZWRpcmVjdCB9IGZyb20gJ25leHQvbmF2aWdhdGlvbidcbmltcG9ydCB7IGhlYWRlcnMsIGNvb2tpZXMgfSBmcm9tICduZXh0L2hlYWRlcnMnXG5cbmV4cG9ydCBhc3luYyBmdW5jdGlvbiBnZXRIZWFkZXJzKCkge1xuICBjb25zb2xlLmxvZygnYWNjZXB0IGhlYWRlcjonLCAoYXdhaXQgaGVhZGVycygpKS5nZXQoJ2FjY2VwdCcpKVxuICA7KGF3YWl0IGNvb2tpZXMoKSkuc2V0KCd0ZXN0LWNvb2tpZScsIERhdGUubm93KCkpXG59XG5cbmV4cG9ydCBhc3luYyBmdW5jdGlvbiBpbmModmFsdWUpIHtcbiAgcmV0dXJuIHZhbHVlICsgMVxufVxuXG5leHBvcnQgYXN5bmMgZnVuY3Rpb24gc2xvd0luYyh2YWx1ZSkge1xuICBhd2FpdCBuZXcgUHJvbWlzZSgocmVzb2x2ZSkgPT4gc2V0VGltZW91dChyZXNvbHZlLCAxMDAwMCkpXG4gIHJldHVybiB2YWx1ZSArIDFcbn1cblxuZXhwb3J0IGFzeW5jIGZ1bmN0aW9uIGRlYyh2YWx1ZSkge1xuICByZXR1cm4gdmFsdWUgLSAxXG59XG5cbmV4cG9ydCBkZWZhdWx0IGFzeW5jIGZ1bmN0aW9uICh2YWx1ZSkge1xuICBjb25zb2xlLmxvZygndGhpc19pc19zZW5zaXRpdmVfaW5mbycpXG4gIHJldHVybiB2YWx1ZSAqIDJcbn1cblxuZXhwb3J0IGFzeW5jIGZ1bmN0aW9uIHJlZGlyZWN0QWN0aW9uKHBhdGgpIHtcbiAgcmVkaXJlY3QocGF0aClcbn1cblxuY29uc3Qgb3JpZ2luYWwgPSBhc3luYyAoKSA9PiB7XG4gIGNvbnNvbGUubG9nKCdhY3Rpb24nKVxufVxuZXhwb3J0IHsgb3JpZ2luYWwgYXMgcmVuYW1lZCB9XG5cbmV4cG9ydCB7IGZvbyBhcyAn8J%2BTmScgfVxuYXN5bmMgZnVuY3Rpb24gZm9vKCkge31cbiJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiaVJ
Ba0NNLG9MQUdlIn0%3D"
;
export
{
"📙"
}
from
"data:text/javascript,%2F%2A%20__next_internal_action_entry_do_not_use__%20%5B%7B%220073f2cbccffb158eb2704761fc88fdbd0aaa102d0%22%3A%
7B%22name%22%3A%22%F0%9F%93%99%22%7D%7D%2C%22%2Fapp%2Fitem.js%22%2C%22%22%5D%20%2A%2F%22use%20turbopack%20no%20side%20effects%22%3Bimport%7BcreateServerReference%2CcallServer%2CfindSourceMapURL%7Dfrom%22private-next-rsc-action-client-wrapper%22%3Bconst%20%24%24RSC_SERVER_ACTION_7%3D%2F%2A%23__PURE__%2A%2FcreateServerReference%28%220073f2cbccffb158eb2704761fc88fdbd0aaa102d0%22%2CcallServer%2Cvoid%200%2CfindSourceMapURL%2C%22%F0%9F%93%99%22%29%3Bexport%7B%24%24RSC_SERVER_ACTION_7%20as%20%22%F0%9F%93%99%22%7D%3B%0A%2F%2F%23%20sourceMappingURL%3Ddata%3Aapplication%2Fjson%3Bbase64%2CeyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImlucHV0LmpzIl0sInNvdXJjZXNDb250ZW50IjpbIid1c2Ugc2VydmVyJ1xuXG5pbXBvcnQgJ3NlcnZlci1vbmx5J1xuXG5pbXBvcnQgeyByZWRpcmVjdCB9IGZyb20gJ25leHQvbmF2aWdhdGlvbidcbmltcG9ydCB7IGhlYWRlcnMsIGNvb2tpZXMgfSBmcm9tICduZXh0L2hlYWRlcnMnXG5cbmV4cG9ydCBhc3luYyBmdW5jdGlvbiBnZXRIZWFkZXJzKCkge1xuICBjb25zb2xlLmxvZygnYWNjZXB0IGhlYWRlcjonLCAoYXdhaXQgaGVhZGVycygpKS5nZXQoJ2FjY2VwdCcpKVxuICA7KGF3YWl0IGNvb2tpZXMoKSkuc2V0KCd0ZXN0LWNvb2tpZScsIERhdGUubm93KCkpXG59XG5cbmV4cG9ydCBhc3luYyBmdW5jdGlvbiBpbmModmFsdWUpIHtcbiAgcmV0dXJuIHZhbHVlICsgMVxufVxuXG5leHBvcnQgYXN5bmMgZnVuY3Rpb24gc2xvd0luYyh2YWx1ZSkge1xuICBhd2FpdCBuZXcgUHJvbWlzZSgocmVzb2x2ZSkgPT4gc2V0VGltZW91dChyZXNvbHZlLCAxMDAwMCkpXG4gIHJldHVybiB2YWx1ZSArIDFcbn1cblxuZXhwb3J0IGFzeW5jIGZ1bmN0aW9uIGRlYyh2YWx1ZSkge1xuICByZXR1cm4gdmFsdWUgLSAxXG59XG5cbmV4cG9ydCBkZWZhdWx0IGFzeW5jIGZ1bmN0aW9uICh2YWx1ZSkge1xuICBjb25zb2xlLmxvZygndGhpc19pc19zZW5zaXRpdmVfaW5mbycpXG4gIHJldHVybiB2YWx1ZSAqIDJcbn1cblxuZXhwb3J0IGFzeW5jIGZ1bmN0aW9uIHJlZGlyZWN0QWN0aW9uKHBhdGgpIHtcbiAgcmVkaXJlY3QocGF0aClcbn1cblxuY29uc3Qgb3JpZ2luYWwgPSBhc3luYyAoKSA9PiB7XG4gIGNvbnNvbGUubG9nKCdhY3Rpb24nKVxufVxuZXhwb3J0IHsgb3JpZ2luYWwgYXMgcmVuYW1lZCB9XG5cbmV4cG9ydCB7IGZvbyBhcyAn8J%2BTmScgfVxuYXN5bmMgZnVuY3Rpb24gZm9vKCkge31cbiJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiNF
FBd0NlLCtLQURDIn0%3D"
;
crates/next-custom-transforms/tests/fixture/source-maps/turbopack/client-graph/production/server-actions/1/output.js
View file @
3aad67b7
"use turbopack no side effects"
;
export
{
getHeaders
}
from
"data:text/javascript,%2F%2A%20__next_internal_action_entry_do_not_use__%20%5B%7B%22006c24672f968b0713dae406536f7dd6fe7d9a7fa0%22%3A%
22getHeaders%22
%7D%2C%22%2Fapp%2Fitem.js%22%2C%22%22%5D%20%2A%2F%22use%20turbopack%20no%20side%20effects%22%3Bimport%7BcreateServerReference%2CcallServer%2CfindSourceMapURL%7Dfrom%22private-next-rsc-action-client-wrapper%22%3Bconst%20%24%24RSC_SERVER_ACTION_1%3D%2F%2A%23__PURE__%2A%2FcreateServerReference%28%22006c24672f968b0713dae406536f7dd6fe7d9a7fa0%22%2CcallServer%2Cvoid%200%2CfindSourceMapURL%2C%22getHeaders%22%29%3Bexport%7B%24%24RSC_SERVER_ACTION_1%20as%20getHeaders%7D%3B"
;
export
{
inc
}
from
"data:text/javascript,%2F%2A%20__next_internal_action_entry_do_not_use__%20%5B%7B%2240e44b877cc9d02556f56639c94229621ab0af0f5f%22%3A%
22inc%22
%7D%2C%22%2Fapp%2Fitem.js%22%2C%22%22%5D%20%2A%2F%22use%20turbopack%20no%20side%20effects%22%3Bimport%7BcreateServerReference%2CcallServer%2CfindSourceMapURL%7Dfrom%22private-next-rsc-action-client-wrapper%22%3Bconst%20%24%24RSC_SERVER_ACTION_2%3D%2F%2A%23__PURE__%2A%2FcreateServerReference%28%2240e44b877cc9d02556f56639c94229621ab0af0f5f%22%2CcallServer%2Cvoid%200%2CfindSourceMapURL%2C%22inc%22%29%3Bexport%7B%24%24RSC_SERVER_ACTION_2%20as%20inc%7D%3B"
;
export
{
slowInc
}
from
"data:text/javascript,%2F%2A%20__next_internal_action_entry_do_not_use__%20%5B%7B%2240f4ad91903d1bf66bfd4e0788888852badc924261%22%3A%
22slowInc%22
%7D%2C%22%2Fapp%2Fitem.js%22%2C%22%22%5D%20%2A%2F%22use%20turbopack%20no%20side%20effects%22%3Bimport%7BcreateServerReference%2CcallServer%2CfindSourceMapURL%7Dfrom%22private-next-rsc-action-client-wrapper%22%3Bconst%20%24%24RSC_SERVER_ACTION_3%3D%2F%2A%23__PURE__%2A%2FcreateServerReference%28%2240f4ad91903d1bf66bfd4e0788888852badc924261%22%2CcallServer%2Cvoid%200%2CfindSourceMapURL%2C%22slowInc%22%29%3Bexport%7B%24%24RSC_SERVER_ACTION_3%20as%20slowInc%7D%3B"
;
export
{
dec
}
from
"data:text/javascript,%2F%2A%20__next_internal_action_entry_do_not_use__%20%5B%7B%224028baf972d345b86b747ad0df73d75a0088a42214%22%3A%
22dec%22
%7D%2C%22%2Fapp%2Fitem.js%22%2C%22%22%5D%20%2A%2F%22use%20turbopack%20no%20side%20effects%22%3Bimport%7BcreateServerReference%2CcallServer%2CfindSourceMapURL%7Dfrom%22private-next-rsc-action-client-wrapper%22%3Bconst%20%24%24RSC_SERVER_ACTION_4%3D%2F%2A%23__PURE__%2A%2FcreateServerReference%28%224028baf972d345b86b747ad0df73d75a0088a42214%22%2CcallServer%2Cvoid%200%2CfindSourceMapURL%2C%22dec%22%29%3Bexport%7B%24%24RSC_SERVER_ACTION_4%20as%20dec%7D%3B"
;
export
{
default
}
from
"data:text/javascript,%2F%2A%20__next_internal_action_entry_do_not_use__%20%5B%7B%2240c18c215a6b7cdc64bf709f3a714ffdef1bf9651d%22%3A%
22default%22
%7D%2C%22%2Fapp%2Fitem.js%22%2C%22%22%5D%20%2A%2F%22use%20turbopack%20no%20side%20effects%22%3Bimport%7BcreateServerReference%2CcallServer%2CfindSourceMapURL%7Dfrom%22private-next-rsc-action-client-wrapper%22%3Bexport%20default%20%2F%2A%23__PURE__%2A%2FcreateServerReference%28%2240c18c215a6b7cdc64bf709f3a714ffdef1bf9651d%22%2CcallServer%2Cvoid%200%2CfindSourceMapURL%2C%22default%22%29%3B"
;
export
{
redirectAction
}
from
"data:text/javascript,%2F%2A%20__next_internal_action_entry_do_not_use__%20%5B%7B%22403724e93433a7e950ef2f8479f31225e4b0dd0cc5%22%3A%
22redirectAction%22
%7D%2C%22%2Fapp%2Fitem.js%22%2C%22%22%5D%20%2A%2F%22use%20turbopack%20no%20side%20effects%22%3Bimport%7BcreateServerReference%2CcallServer%2CfindSourceMapURL%7Dfrom%22private-next-rsc-action-client-wrapper%22%3Bconst%20%24%24RSC_SERVER_ACTION_5%3D%2F%2A%23__PURE__%2A%2FcreateServerReference%28%22403724e93433a7e950ef2f8479f31225e4b0dd0cc5%22%2CcallServer%2Cvoid%200%2CfindSourceMapURL%2C%22redirectAction%22%29%3Bexport%7B%24%24RSC_SERVER_ACTION_5%20as%20redirectAction%7D%3B"
;
export
{
renamed
}
from
"data:text/javascript,%2F%2A%20__next_internal_action_entry_do_not_use__%20%5B%7B%22001e1a741f85a589443b50c4863618893572cfb178%22%3A%
22renamed%22
%7D%2C%22%2Fapp%2Fitem.js%22%2C%22%22%5D%20%2A%2F%22use%20turbopack%20no%20side%20effects%22%3Bimport%7BcreateServerReference%2CcallServer%2CfindSourceMapURL%7Dfrom%22private-next-rsc-action-client-wrapper%22%3Bconst%20%24%24RSC_SERVER_ACTION_6%3D%2F%2A%23__PURE__%2A%2FcreateServerReference%28%22001e1a741f85a589443b50c4863618893572cfb178%22%2CcallServer%2Cvoid%200%2CfindSourceMapURL%2C%22renamed%22%29%3Bexport%7B%24%24RSC_SERVER_ACTION_6%20as%20renamed%7D%3B"
;
export
{
"📙"
}
from
"data:text/javascript,%2F%2A%20__next_internal_action_entry_do_not_use__%20%5B%7B%220073f2cbccffb158eb2704761fc88fdbd0aaa102d0%22%3A%
22%F0%9F%93%99%22
%7D%2C%22%2Fapp%2Fitem.js%22%2C%22%22%5D%20%2A%2F%22use%20turbopack%20no%20side%20effects%22%3Bimport%7BcreateServerReference%2CcallServer%2CfindSourceMapURL%7Dfrom%22private-next-rsc-action-client-wrapper%22%3Bconst%20%24%24RSC_SERVER_ACTION_7%3D%2F%2A%23__PURE__%2A%2FcreateServerReference%28%220073f2cbccffb158eb2704761fc88fdbd0aaa102d0%22%2CcallServer%2Cvoid%200%2CfindSourceMapURL%2C%22%F0%9F%93%99%22%29%3Bexport%7B%24%24RSC_SERVER_ACTION_7%20as%20%22%F0%9F%93%99%22%7D%3B"
;
export
{
getHeaders
}
from
"data:text/javascript,%2F%2A%20__next_internal_action_entry_do_not_use__%20%5B%7B%22006c24672f968b0713dae406536f7dd6fe7d9a7fa0%22%3A%
7B%22name%22%3A%22getHeaders%22%7D
%7D%2C%22%2Fapp%2Fitem.js%22%2C%22%22%5D%20%2A%2F%22use%20turbopack%20no%20side%20effects%22%3Bimport%7BcreateServerReference%2CcallServer%2CfindSourceMapURL%7Dfrom%22private-next-rsc-action-client-wrapper%22%3Bconst%20%24%24RSC_SERVER_ACTION_1%3D%2F%2A%23__PURE__%2A%2FcreateServerReference%28%22006c24672f968b0713dae406536f7dd6fe7d9a7fa0%22%2CcallServer%2Cvoid%200%2CfindSourceMapURL%2C%22getHeaders%22%29%3Bexport%7B%24%24RSC_SERVER_ACTION_1%20as%20getHeaders%7D%3B"
;
export
{
inc
}
from
"data:text/javascript,%2F%2A%20__next_internal_action_entry_do_not_use__%20%5B%7B%2240e44b877cc9d02556f56639c94229621ab0af0f5f%22%3A%
7B%22name%22%3A%22inc%22%7D
%7D%2C%22%2Fapp%2Fitem.js%22%2C%22%22%5D%20%2A%2F%22use%20turbopack%20no%20side%20effects%22%3Bimport%7BcreateServerReference%2CcallServer%2CfindSourceMapURL%7Dfrom%22private-next-rsc-action-client-wrapper%22%3Bconst%20%24%24RSC_SERVER_ACTION_2%3D%2F%2A%23__PURE__%2A%2FcreateServerReference%28%2240e44b877cc9d02556f56639c94229621ab0af0f5f%22%2CcallServer%2Cvoid%200%2CfindSourceMapURL%2C%22inc%22%29%3Bexport%7B%24%24RSC_SERVER_ACTION_2%20as%20inc%7D%3B"
;
export
{
slowInc
}
from
"data:text/javascript,%2F%2A%20__next_internal_action_entry_do_not_use__%20%5B%7B%2240f4ad91903d1bf66bfd4e0788888852badc924261%22%3A%
7B%22name%22%3A%22slowInc%22%7D
%7D%2C%22%2Fapp%2Fitem.js%22%2C%22%22%5D%20%2A%2F%22use%20turbopack%20no%20side%20effects%22%3Bimport%7BcreateServerReference%2CcallServer%2CfindSourceMapURL%7Dfrom%22private-next-rsc-action-client-wrapper%22%3Bconst%20%24%24RSC_SERVER_ACTION_3%3D%2F%2A%23__PURE__%2A%2FcreateServerReference%28%2240f4ad91903d1bf66bfd4e0788888852badc924261%22%2CcallServer%2Cvoid%200%2CfindSourceMapURL%2C%22slowInc%22%29%3Bexport%7B%24%24RSC_SERVER_ACTION_3%20as%20slowInc%7D%3B"
;
export
{
dec
}
from
"data:text/javascript,%2F%2A%20__next_internal_action_entry_do_not_use__%20%5B%7B%224028baf972d345b86b747ad0df73d75a0088a42214%22%3A%
7B%22name%22%3A%22dec%22%7D
%7D%2C%22%2Fapp%2Fitem.js%22%2C%22%22%5D%20%2A%2F%22use%20turbopack%20no%20side%20effects%22%3Bimport%7BcreateServerReference%2CcallServer%2CfindSourceMapURL%7Dfrom%22private-next-rsc-action-client-wrapper%22%3Bconst%20%24%24RSC_SERVER_ACTION_4%3D%2F%2A%23__PURE__%2A%2FcreateServerReference%28%224028baf972d345b86b747ad0df73d75a0088a42214%22%2CcallServer%2Cvoid%200%2CfindSourceMapURL%2C%22dec%22%29%3Bexport%7B%24%24RSC_SERVER_ACTION_4%20as%20dec%7D%3B"
;
export
{
default
}
from
"data:text/javascript,%2F%2A%20__next_internal_action_entry_do_not_use__%20%5B%7B%2240c18c215a6b7cdc64bf709f3a714ffdef1bf9651d%22%3A%
7B%22name%22%3A%22default%22%7D
%7D%2C%22%2Fapp%2Fitem.js%22%2C%22%22%5D%20%2A%2F%22use%20turbopack%20no%20side%20effects%22%3Bimport%7BcreateServerReference%2CcallServer%2CfindSourceMapURL%7Dfrom%22private-next-rsc-action-client-wrapper%22%3Bexport%20default%20%2F%2A%23__PURE__%2A%2FcreateServerReference%28%2240c18c215a6b7cdc64bf709f3a714ffdef1bf9651d%22%2CcallServer%2Cvoid%200%2CfindSourceMapURL%2C%22default%22%29%3B"
;
export
{
redirectAction
}
from
"data:text/javascript,%2F%2A%20__next_internal_action_entry_do_not_use__%20%5B%7B%22403724e93433a7e950ef2f8479f31225e4b0dd0cc5%22%3A%
7B%22name%22%3A%22redirectAction%22%7D
%7D%2C%22%2Fapp%2Fitem.js%22%2C%22%22%5D%20%2A%2F%22use%20turbopack%20no%20side%20effects%22%3Bimport%7BcreateServerReference%2CcallServer%2CfindSourceMapURL%7Dfrom%22private-next-rsc-action-client-wrapper%22%3Bconst%20%24%24RSC_SERVER_ACTION_5%3D%2F%2A%23__PURE__%2A%2FcreateServerReference%28%22403724e93433a7e950ef2f8479f31225e4b0dd0cc5%22%2CcallServer%2Cvoid%200%2CfindSourceMapURL%2C%22redirectAction%22%29%3Bexport%7B%24%24RSC_SERVER_ACTION_5%20as%20redirectAction%7D%3B"
;
export
{
renamed
}
from
"data:text/javascript,%2F%2A%20__next_internal_action_entry_do_not_use__%20%5B%7B%22001e1a741f85a589443b50c4863618893572cfb178%22%3A%
7B%22name%22%3A%22renamed%22%7D
%7D%2C%22%2Fapp%2Fitem.js%22%2C%22%22%5D%20%2A%2F%22use%20turbopack%20no%20side%20effects%22%3Bimport%7BcreateServerReference%2CcallServer%2CfindSourceMapURL%7Dfrom%22private-next-rsc-action-client-wrapper%22%3Bconst%20%24%24RSC_SERVER_ACTION_6%3D%2F%2A%23__PURE__%2A%2FcreateServerReference%28%22001e1a741f85a589443b50c4863618893572cfb178%22%2CcallServer%2Cvoid%200%2CfindSourceMapURL%2C%22renamed%22%29%3Bexport%7B%24%24RSC_SERVER_ACTION_6%20as%20renamed%7D%3B"
;
export
{
"📙"
}
from
"data:text/javascript,%2F%2A%20__next_internal_action_entry_do_not_use__%20%5B%7B%220073f2cbccffb158eb2704761fc88fdbd0aaa102d0%22%3A%
7B%22name%22%3A%22%F0%9F%93%99%22%7D
%7D%2C%22%2Fapp%2Fitem.js%22%2C%22%22%5D%20%2A%2F%22use%20turbopack%20no%20side%20effects%22%3Bimport%7BcreateServerReference%2CcallServer%2CfindSourceMapURL%7Dfrom%22private-next-rsc-action-client-wrapper%22%3Bconst%20%24%24RSC_SERVER_ACTION_7%3D%2F%2A%23__PURE__%2A%2FcreateServerReference%28%220073f2cbccffb158eb2704761fc88fdbd0aaa102d0%22%2CcallServer%2Cvoid%200%2CfindSourceMapURL%2C%22%F0%9F%93%99%22%29%3Bexport%7B%24%24RSC_SERVER_ACTION_7%20as%20%22%F0%9F%93%99%22%7D%3B"
;
packages/next/src/build/analysis/get-page-static-info.ts
View file @
3aad67b7
...
...
@@ -113,8 +113,10 @@ export type PageStaticInfo = AppPageStaticInfo | PagesPageStaticInfo
const
CLIENT_MODULE_LABEL
=
/
\/\*
__next_internal_client_entry_do_not_use__
([^
]
*
)
(
cjs|auto
)
\*\/
/
// Match JSON object that may contain nested objects (for loc info)
// The JSON ends right before the closing " */"
const
ACTION_MODULE_LABEL
=
/
\/\*
__next_internal_action_entry_do_not_use__
(\{
[^
}
]
+
\})
\*\/
/
/
\/\*
__next_internal_action_entry_do_not_use__
(\{
.*
\})
\*\/
/
const
CLIENT_DIRECTIVE
=
'use client'
const
SERVER_ACTION_DIRECTIVE
=
'use server'
...
...
@@ -125,8 +127,9 @@ export function getRSCModuleInformation(
isReactServerLayer
:
boolean
):
RSCMeta
{
const
actionsJson
=
source
.
match
(
ACTION_MODULE_LABEL
)
// Parse action metadata - supports both old format (string) and new format (object with loc)
const
parsedActionsMeta
=
actionsJson
?
(
JSON
.
parse
(
actionsJson
[
1
])
as
R
ecord
<
string
,
string
>
)
?
(
JSON
.
parse
(
actionsJson
[
1
])
as
R
SCMeta
[
'actionIds'
]
)
:
undefined
const
clientInfoMatch
=
source
.
match
(
CLIENT_MODULE_LABEL
)
const
isClientRef
=
!!
clientInfoMatch
...
...
packages/next/src/build/webpack/loaders/get-module-build-info.ts
View file @
3aad67b7
...
...
@@ -26,9 +26,26 @@ export function getModuleBuildInfo(webpackModule: webpack.Module) {
return
webpackModule
.
buildInfo
as
ModuleBuildInfo
}
/**
* Location info for a server action (1-indexed line and column)
*/
export
interface
ServerActionLocation
{
line
:
number
col
:
number
}
/**
* Server action info including name and optional source location
*/
export
interface
ServerActionInfo
{
name
:
string
loc
?:
ServerActionLocation
}
export
interface
RSCMeta
{
type
:
RSCModuleType
actionIds
?:
Record
<
string
,
string
>
/** Map of action ID to export name (old format) or action info (new format with location) */
actionIds
?:
Record
<
string
,
string
|
ServerActionInfo
>
clientRefs
?:
string
[]
clientEntryType
?:
'cjs'
|
'auto'
isClientRef
?:
boolean
...
...
packages/next/src/build/webpack/loaders/next-flight-client-module-loader.ts
View file @
3aad67b7
...
...
@@ -32,7 +32,10 @@ const flightClientModuleLoader: webpack.LoaderDefinitionFunction =
return
(
prefix
+
Object
.
entries
(
buildInfo
.
rsc
.
actionIds
)
.
map
(([
id
,
name
])
=>
{
.
map
(([
id
,
exportInfo
])
=>
{
// exportInfo can be a string (legacy) or object with name
const
name
=
typeof
exportInfo
===
'string'
?
exportInfo
:
exportInfo
.
name
return
`export {
${
name
}
} from 'next-flight-server-reference-proxy-loader?id=
${
id
}
&name=
${
name
}
!'`
})
.
join
(
'
\
n'
)
...
...
packages/next/src/build/webpack/plugins/flight-client-entry-plugin.ts
View file @
3aad67b7
...
...
@@ -81,7 +81,11 @@ type Actions = {
}
}
type
ActionIdNamePair
=
{
id
:
string
;
exportedName
?:
string
;
filename
?:
string
}
type
ActionIdNamePair
=
{
id
:
string
exportedName
?:
string
filename
?:
string
}
export
type
ActionManifest
=
{
// Assign a unique encryption key during production build.
...
...
@@ -658,11 +662,18 @@ export class FlightClientEntryPlugin {
if
(
actionIds
)
{
collectedActions
.
set
(
modResource
,
Object
.
entries
(
actionIds
).
map
(([
id
,
exportedName
])
=>
({
id
,
exportedName
,
filename
:
path
.
posix
.
relative
(
this
.
projectDir
,
modResource
),
}))
Object
.
entries
(
actionIds
).
map
(([
id
,
actionInfo
])
=>
{
// Handle both old format (string) and new format (object with name)
const
exportedName
=
typeof
actionInfo
===
'object'
&&
actionInfo
!==
null
?
actionInfo
.
name
:
actionInfo
return
{
id
,
exportedName
,
filename
:
path
.
posix
.
relative
(
this
.
projectDir
,
modResource
),
}
})
)
}
...
...
@@ -759,11 +770,18 @@ export class FlightClientEntryPlugin {
if
(
actionIds
)
{
actionImports
.
push
([
modResource
,
Object
.
entries
(
actionIds
).
map
(([
id
,
exportedName
])
=>
({
id
,
exportedName
,
filename
:
path
.
posix
.
relative
(
this
.
projectDir
,
modResource
),
})),
Object
.
entries
(
actionIds
).
map
(([
id
,
actionInfo
])
=>
{
// Handle both old format (string) and new format (object with name)
const
exportedName
=
typeof
actionInfo
===
'object'
&&
actionInfo
!==
null
?
actionInfo
.
name
:
actionInfo
return
{
id
,
exportedName
,
filename
:
path
.
posix
.
relative
(
this
.
projectDir
,
modResource
),
}
}),
])
}
...
...
packages/next/src/server/app-render/action-handler.ts
View file @
3aad67b7
...
...
@@ -57,19 +57,23 @@ import {
getServerModuleMap
,
}
from
'./manifests-singleton'
import
{
isNodeNextRequest
,
isWebNextRequest
}
from
'../base-http/helpers'
import
{
normalizeFilePath
}
from
'./segment-explorer-path'
import
type
{
ServerActionLogInfo
}
from
'../dev/server-action-logger'
import
{
RedirectStatusCode
}
from
'../../client/components/redirect-status-code'
import
{
synchronizeMutableCookies
}
from
'../async-storage/request-store'
import
type
{
TemporaryReferenceSet
}
from
'react-server-dom-webpack/server'
import
{
workUnitAsyncStorage
}
from
'../app-render/work-unit-async-storage.external'
import
{
InvariantError
}
from
'../../shared/lib/invariant-error'
import
{
executeRevalidates
}
from
'../revalidation-utils'
import
{
getRequestMeta
}
from
'../request-meta'
import
{
addRequestMeta
,
getRequestMeta
}
from
'../request-meta'
import
{
setCacheBustingSearchParam
}
from
'../../client/components/router-reducer/set-cache-busting-search-param'
import
{
ActionDidNotRevalidate
,
ActionDidRevalidateStaticAndDynamic
,
}
from
'../../shared/lib/action-revalidation-kind'
const
INLINE_ACTION_PREFIX
=
'$$RSC_SERVER_ACTION_'
/**
* Checks if the app has any server actions defined in any runtime.
*/
...
...
@@ -1080,6 +1084,37 @@ export async function handleAction({
actionId
!
]
// Log server action call in development
let
logInfo
:
ServerActionLogInfo
|
null
=
null
if
(
process
.
env
.
NODE_ENV
===
'development'
)
{
const
serverActionsManifest
=
getServerActionsManifest
()
const
runtime
=
process
.
env
.
NEXT_RUNTIME
===
'edge'
?
'edge'
:
'node'
const
actionInfo
=
serverActionsManifest
[
runtime
]?.[
actionId
!
]
if
(
actionInfo
)
{
const
isInlineAction
=
actionInfo
.
exportedName
?.
startsWith
(
INLINE_ACTION_PREFIX
)
const
projectDir
=
ctx
.
renderOpts
.
dir
||
(
process
.
env
.
NEXT_RUNTIME
===
'edge'
?
''
:
process
.
cwd
())
const
location
=
normalizeFilePath
(
projectDir
,
actionInfo
.
filename
)
// Format function name for display
let
functionName
:
string
if
(
isInlineAction
)
{
functionName
=
'<inline action>'
}
else
if
(
actionInfo
.
exportedName
===
'default'
)
{
functionName
=
'default'
}
else
{
functionName
=
actionInfo
.
exportedName
||
'<action>'
}
logInfo
=
{
functionName
,
args
:
boundActionArguments
,
location
}
}
}
const
startTime
=
performance
.
now
()
const
{
actionResult
,
skipPageRendering
}
=
await
executeActionAndPrepareForRender
(
actionHandler
,
...
...
@@ -1089,6 +1124,16 @@ export async function handleAction({
actionWasForwarded
).
finally
(()
=>
{
addRevalidationHeader
(
res
,
{
workStore
,
requestStore
})
if
(
logInfo
)
{
// Store server action log info to be logged after the request log
const
duration
=
Math
.
round
(
performance
.
now
()
-
startTime
)
addRequestMeta
(
req
,
'devServerActionLog'
,
{
functionName
:
logInfo
.
functionName
,
args
:
logInfo
.
args
,
location
:
logInfo
.
location
,
duration
,
})
}
})
// For form actions, we need to continue rendering the page.
...
...
packages/next/src/server/app-render/segment-explorer-path.ts
View file @
3aad67b7
...
...
@@ -5,27 +5,62 @@ export const BUILTIN_PREFIX = '__next_builtin__'
const
nextInternalPrefixRegex
=
/^
(
.*
[\\/])?
next
[\\/]
dist
[\\/]
client
[\\/]
components
[\\/]
builtin
[\\/]
/
export
function
normalizeConventionFilePath
(
/**
* Normalize a file path to be relative to the project directory.
* Handles Turbopack [project] prefix and monorepo setups.
*/
export
function
normalizeFilePath
(
projectDir
:
string
,
convention
Path
:
string
|
undefined
)
{
file
Path
:
string
|
undefined
)
:
string
{
// Turbopack project path is formed as: "<project root>/<cwd>".
// When project root is not the working directory, we can extract the relative project root path.
// This is mostly used for running Next.js inside a monorepo.
const
cwd
=
process
.
env
.
NEXT_RUNTIME
===
'edge'
?
''
:
process
.
cwd
()
const
relativeProjectRoot
=
projectDir
.
replace
(
cwd
,
''
)
const
relativeProjectRoot
=
projectDir
.
replace
(
cwd
,
''
)
.
replace
(
/^
[\\/]
/
,
''
)
let
relativePath
=
(
convention
Path
||
''
)
let
relativePath
=
(
file
Path
||
''
)
// remove turbopack [project] prefix
.
replace
(
/^
\[
project
\]
/
,
''
)
// remove turbopack relative project path, everything after [project] and before the working directory.
.
replace
(
relativeProjectRoot
,
''
)
// remove the project root from the path
.
replace
(
/^
\[
project
\][\\/]?
/
,
''
)
// remove the project root from the path (absolute)
.
replace
(
projectDir
,
''
)
// remove cwd prefix
// remove cwd prefix
(absolute)
.
replace
(
cwd
,
''
)
// normalize path separators and remove leading slash
.
replace
(
/
\\
/g
,
'/'
)
.
replace
(
/^
\/
/
,
''
)
// remove relative project path prefix (e.g., "test/e2e/app-dir/actions/")
if
(
relativeProjectRoot
&&
relativePath
.
startsWith
(
relativeProjectRoot
))
{
relativePath
=
relativePath
.
slice
(
relativeProjectRoot
.
length
)
.
replace
(
/^
\/
/
,
''
)
}
// Handle case where filename is relative to a parent of projectDir
// (e.g., in tests where filename is "test/tmp/next-test-XXX/app/page.js"
// but projectDir is the test temp directory)
if
(
relativePath
.
includes
(
'/'
))
{
const
projectDirName
=
projectDir
.
split
(
/
[\\/]
/
).
pop
()
||
''
if
(
projectDirName
)
{
const
projectDirWithSlash
=
projectDirName
+
'/'
const
idx
=
relativePath
.
indexOf
(
projectDirWithSlash
)
if
(
idx
>=
0
)
{
relativePath
=
relativePath
.
slice
(
idx
+
projectDirWithSlash
.
length
)
}
}
}
return
relativePath
}
export
function
normalizeConventionFilePath
(
projectDir
:
string
,
conventionPath
:
string
|
undefined
)
{
let
relativePath
=
normalizeFilePath
(
projectDir
,
conventionPath
)
// remove /(src/)?app/ dir prefix
.
replace
(
/^
(
[\\/])
*
(
src
[\\/])?
app
[\\/]
/
,
''
)
.
replace
(
/^
(
src
\/)?
app
\/
/
,
''
)
// If it's internal file only keep the filename, strip nextjs internal prefix
if
(
nextInternalPrefixRegex
.
test
(
relativePath
))
{
...
...
@@ -34,7 +69,7 @@ export function normalizeConventionFilePath(
relativePath
=
`
${
BUILTIN_PREFIX
}${
relativePath
}
`
}
return
relativePath
.
replace
(
/
\\
/g
,
'/'
)
return
relativePath
}
// if a filepath is a builtin file. e.g.
...
...
packages/next/src/server/dev/log-requests.ts
View file @
3aad67b7
...
...
@@ -13,7 +13,8 @@ import { stripNextRscUnionQuery } from '../../lib/url'
import
type
{
FetchMetric
}
from
'../base-http'
import
type
{
NodeNextRequest
,
NodeNextResponse
}
from
'../base-http/node'
import
type
{
LoggingConfig
}
from
'../config-shared'
import
{
getRequestMeta
}
from
'../request-meta'
import
{
getRequestMeta
,
removeRequestMeta
}
from
'../request-meta'
import
{
formatArgs
}
from
'./server-action-logger'
/**
* Returns true if the incoming request should be ignored for logging.
...
...
@@ -61,6 +62,16 @@ export function logRequests(
devRequestTimingInternalsEnd
,
devGenerateStaticParamsDuration
)
// Log server action after the request log
const
serverActionLog
=
getRequestMeta
(
request
,
'devServerActionLog'
)
if
(
serverActionLog
)
{
const
argsStr
=
formatArgs
(
serverActionLog
.
args
)
process
.
stdout
.
write
(
` └─ ƒ
${
serverActionLog
.
functionName
}
(
${
argsStr
}
) in
${
serverActionLog
.
duration
}
ms
${
dim
(
serverActionLog
.
location
)}
\n`
)
removeRequestMeta
(
request
,
'devServerActionLog'
)
}
}
if
(
request
.
fetchMetrics
)
{
...
...
packages/next/src/server/dev/server-action-logger.ts
0 → 100644
View file @
3aad67b7
import
{
configure
}
from
'next/dist/compiled/safe-stable-stringify'
// Configure stringify with reasonable limits for action logging
const
stringify
=
configure
({
maximumDepth
:
2
,
maximumBreadth
:
3
,
})
/**
* Format a single argument for display in server action logs.
*/
function
formatArg
(
arg
:
unknown
):
string
{
try
{
return
stringify
(
arg
)
??
String
(
arg
)
}
catch
{
// String(arg) can throw for temporary client references (e.g., class instances
// passed from client to server) because accessing .toString() on them throws
// "Cannot access toString on the server"
try
{
return
String
(
arg
)
}
catch
{
return
'[unserializable]'
}
}
}
/**
* Format arguments array to a string for display
*/
export
function
formatArgs
(
args
:
unknown
[]):
string
{
return
args
.
map
((
a
)
=>
formatArg
(
a
)).
join
(
', '
)
}
export
interface
ServerActionLogInfo
{
functionName
:
string
args
:
unknown
[]
location
:
string
}
packages/next/src/server/request-meta.ts
View file @
3aad67b7
...
...
@@ -286,6 +286,16 @@ export interface RequestMeta {
* DEV only: The duration of getStaticPaths/generateStaticParams in process.hrtime.bigint()
*/
devGenerateStaticParamsDuration
?:
bigint
/**
* DEV only: Server action log info to be logged after the request log
*/
devServerActionLog
?:
{
functionName
:
string
args
:
unknown
[]
location
:
string
duration
:
number
}
}
/**
...
...
test/e2e/app-dir/server-action-logging/app/action-buttons.js
0 → 100644
View file @
3aad67b7
'use client'
import
{
useState
}
from
'react'
export
default
function
ActionButtons
({
successAction
,
multiArgAction
,
redirectAction
,
notFoundAction
,
errorAction
,
objectArgAction
,
arrayArgAction
,
inlineAction
,
promiseArgAction
,
})
{
const
[
result
,
setResult
]
=
useState
(
null
)
const
[
error
,
setError
]
=
useState
(
null
)
const
handleSuccess
=
async
()
=>
{
setError
(
null
)
const
res
=
await
successAction
(
5
)
setResult
(
res
)
}
const
handleMultiArg
=
async
()
=>
{
setError
(
null
)
const
res
=
await
multiArgAction
(
1
,
2
,
3
)
setResult
(
res
)
}
const
handleRedirect
=
async
()
=>
{
setError
(
null
)
await
redirectAction
(
'/redirect-target'
)
}
const
handleNotFound
=
async
()
=>
{
setError
(
null
)
try
{
await
notFoundAction
()
}
catch
(
e
)
{
setError
(
'notFound triggered'
)
}
}
const
handleError
=
async
()
=>
{
setError
(
null
)
try
{
await
errorAction
()
}
catch
(
e
)
{
setError
(
e
.
message
)
}
}
const
handleObjectArg
=
async
()
=>
{
setError
(
null
)
const
res
=
await
objectArgAction
({
name
:
'test'
,
value
:
42
})
setResult
(
res
)
}
const
handleArrayArg
=
async
()
=>
{
setError
(
null
)
const
res
=
await
arrayArgAction
([
1
,
2
,
3
,
4
,
5
])
setResult
(
res
)
}
const
handleInline
=
async
()
=>
{
setError
(
null
)
const
res
=
await
inlineAction
(
10
)
setResult
({
doubled
:
res
})
}
const
handlePromiseArg
=
async
()
=>
{
setError
(
null
)
const
res
=
await
promiseArgAction
(
Promise
.
resolve
(
'hello'
))
setResult
(
res
)
}
return
(
<
div
>
<
h1
>
Server
Action
Logging
Test
<
/h1
>
<
div
>
<
button
id
=
"success-action"
onClick
=
{
handleSuccess
}
>
Success
Action
<
/button
>
<
button
id
=
"multi-arg-action"
onClick
=
{
handleMultiArg
}
>
Multi
Arg
Action
<
/button
>
<
button
id
=
"redirect-action"
onClick
=
{
handleRedirect
}
>
Redirect
Action
<
/button
>
<
button
id
=
"not-found-action"
onClick
=
{
handleNotFound
}
>
NotFound
Action
<
/button
>
<
button
id
=
"error-action"
onClick
=
{
handleError
}
>
Error
Action
<
/button
>
<
button
id
=
"object-arg-action"
onClick
=
{
handleObjectArg
}
>
Object
Arg
Action
<
/button
>
<
button
id
=
"array-arg-action"
onClick
=
{
handleArrayArg
}
>
Array
Arg
Action
<
/button
>
<
button
id
=
"inline-action"
onClick
=
{
handleInline
}
>
Inline
Action
<
/button
>
<
button
id
=
"promise-arg-action"
onClick
=
{
handlePromiseArg
}
>
Promise
Arg
Action
<
/button
>
<
/div
>
{
result
&&
<
pre
id
=
"result"
>
{
JSON
.
stringify
(
result
,
null
,
2
)}
<
/pre>
}
{
error
&&
<
p
id
=
"error"
>
{
error
}
<
/p>
}
<
/div
>
)
}
test/e2e/app-dir/server-action-logging/app/actions.js
0 → 100644
View file @
3aad67b7
'use server'
import
{
redirect
}
from
'next/navigation'
import
{
notFound
}
from
'next/navigation'
// Simple successful action
export
async
function
successAction
(
value
)
{
return
{
result
:
value
+
1
}
}
// Action with multiple arguments
export
async
function
multiArgAction
(
a
,
b
,
c
)
{
return
{
sum
:
a
+
b
+
c
}
}
// Action that redirects (should show 303 status)
export
async
function
redirectAction
(
path
)
{
redirect
(
path
)
}
// Action that throws notFound (should show 404 status)
export
async
function
notFoundAction
()
{
notFound
()
}
// Action that throws an error (should show 500 status)
export
async
function
errorAction
()
{
throw
new
Error
(
'Intentional error for testing'
)
}
// Action with object argument
export
async
function
objectArgAction
(
data
)
{
return
{
received
:
data
}
}
// Action with array argument
export
async
function
arrayArgAction
(
items
)
{
return
{
count
:
items
.
length
}
}
// Inline action export for testing inline action display
export
const
inlineAction
=
async
(
value
)
=>
{
return
value
*
2
}
// Action with promise argument
export
async
function
promiseArgAction
(
promiseValue
)
{
const
resolved
=
await
promiseValue
return
{
resolved
}
}
test/e2e/app-dir/server-action-logging/app/inline/button.js
0 → 100644
View file @
3aad67b7
'use client'
import
{
useState
}
from
'react'
export
function
InlineActionButton
({
action
})
{
const
[
result
,
setResult
]
=
useState
(
null
)
const
handleClick
=
async
()
=>
{
const
res
=
await
action
(
10
)
setResult
(
res
)
}
return
(
<
div
>
<
button
id
=
"true-inline-action"
onClick
=
{
handleClick
}
>
True
Inline
Action
<
/button
>
{
result
&&
<
pre
id
=
"result"
>
{
JSON
.
stringify
(
result
,
null
,
2
)}
<
/pre>
}
<
/div
>
)
}
test/e2e/app-dir/server-action-logging/app/inline/page.js
0 → 100644
View file @
3aad67b7
import
{
InlineActionButton
}
from
'./button'
export
default
function
InlinePage
()
{
async
function
trueInlineAction
(
value
)
{
'use server'
return
{
doubled
:
value
*
2
}
}
return
(
<
div
>
<
h1
id
=
"inline-page"
>
Inline
Action
Test
<
/h1
>
<
InlineActionButton
action
=
{
trueInlineAction
}
/
>
<
/div
>
)
}
test/e2e/app-dir/server-action-logging/app/layout.js
0 → 100644
View file @
3aad67b7
export
default
function
Layout
({
children
})
{
return
(
<
html
>
<
body
>
{
children
}
<
/body
>
<
/html
>
)
}
test/e2e/app-dir/server-action-logging/app/not-found.js
0 → 100644
View file @
3aad67b7
export
default
function
NotFound
()
{
return
<
h1
id
=
"not-found"
>
Not
Found
<
/h1
>
}
test/e2e/app-dir/server-action-logging/app/page.js
0 → 100644
View file @
3aad67b7
import
ActionButtons
from
'./action-buttons'
import
{
successAction
,
multiArgAction
,
redirectAction
,
notFoundAction
,
errorAction
,
objectArgAction
,
arrayArgAction
,
inlineAction
,
promiseArgAction
,
}
from
'./actions'
export
default
function
Page
()
{
return
(
<
ActionButtons
successAction
=
{
successAction
}
multiArgAction
=
{
multiArgAction
}
redirectAction
=
{
redirectAction
}
notFoundAction
=
{
notFoundAction
}
errorAction
=
{
errorAction
}
objectArgAction
=
{
objectArgAction
}
arrayArgAction
=
{
arrayArgAction
}
inlineAction
=
{
inlineAction
}
promiseArgAction
=
{
promiseArgAction
}
/
>
)
}
test/e2e/app-dir/server-action-logging/app/redirect-target/page.js
0 → 100644
View file @
3aad67b7
export
default
function
RedirectTarget
()
{
return
<
h1
id
=
"redirect-target"
>
Redirect
Target
<
/h1
>
}
test/e2e/app-dir/server-action-logging/server-action-logging.test.ts
0 → 100644
View file @
3aad67b7
import
stripAnsi
from
'strip-ansi'
import
{
retry
}
from
'next-test-utils'
import
{
nextTestSetup
}
from
'e2e-utils'
describe
(
'server-action-logging'
,
()
=>
{
const
{
next
,
isNextStart
,
skipped
}
=
nextTestSetup
({
skipDeployment
:
true
,
files
:
__dirname
,
})
if
(
skipped
)
return
if
(
isNextStart
)
{
it
(
'should not log server actions in production mode'
,
async
()
=>
{
const
browser
=
await
next
.
browser
(
'/'
)
const
outputIndex
=
next
.
cliOutput
.
length
await
browser
.
elementByCss
(
'#success-action'
).
click
()
await
browser
.
waitForElementByCss
(
'#result'
)
// Wait a bit and verify no action logs appear
await
retry
(()
=>
{
const
logs
=
stripAnsi
(
next
.
cliOutput
.
slice
(
outputIndex
))
// Should not contain the server action log format
expect
(
logs
).
not
.
toContain
(
'└─ ƒ successAction'
)
})
})
return
}
it
(
'should log successful server action'
,
async
()
=>
{
const
browser
=
await
next
.
browser
(
'/'
)
const
outputIndex
=
next
.
cliOutput
.
length
await
browser
.
elementByCss
(
'#success-action'
).
click
()
await
browser
.
waitForElementByCss
(
'#result'
)
await
retry
(()
=>
{
const
logs
=
stripAnsi
(
next
.
cliOutput
.
slice
(
outputIndex
))
expect
(
logs
).
toContain
(
'└─ ƒ successAction'
)
expect
(
logs
).
toMatch
(
/└─ ƒ successAction
\(
5
\)
in
\d
+ms/
)
// Validate order: POST request and server action log should be on consecutive lines
const
lines
=
logs
.
split
(
'
\
n'
)
const
postLineIndex
=
lines
.
findIndex
((
line
)
=>
line
.
includes
(
'POST /'
))
const
actionLineIndex
=
lines
.
findIndex
((
line
)
=>
line
.
includes
(
'└─ ƒ successAction'
)
)
expect
(
postLineIndex
).
toBeGreaterThan
(
-
1
)
expect
(
actionLineIndex
).
toBe
(
postLineIndex
+
1
)
})
})
it
(
'should log server action with multiple arguments'
,
async
()
=>
{
const
browser
=
await
next
.
browser
(
'/'
)
const
outputIndex
=
next
.
cliOutput
.
length
await
browser
.
elementByCss
(
'#multi-arg-action'
).
click
()
await
browser
.
waitForElementByCss
(
'#result'
)
await
retry
(()
=>
{
const
logs
=
stripAnsi
(
next
.
cliOutput
.
slice
(
outputIndex
))
expect
(
logs
).
toContain
(
'└─ ƒ multiArgAction'
)
expect
(
logs
).
toMatch
(
/└─ ƒ multiArgAction
\(
1, 2, 3
\)
in
\d
+ms/
)
})
})
it
(
'should log server action with object argument'
,
async
()
=>
{
const
browser
=
await
next
.
browser
(
'/'
)
const
outputIndex
=
next
.
cliOutput
.
length
await
browser
.
elementByCss
(
'#object-arg-action'
).
click
()
await
browser
.
waitForElementByCss
(
'#result'
)
await
retry
(()
=>
{
const
logs
=
stripAnsi
(
next
.
cliOutput
.
slice
(
outputIndex
))
expect
(
logs
).
toContain
(
'└─ ƒ objectArgAction'
)
// safe-stable-stringify outputs JSON format
expect
(
logs
).
toMatch
(
/└─ ƒ objectArgAction
\(\{
"name":"test","value":42
\}\)
in
\d
+ms/
)
})
})
it
(
'should log server action with array argument (truncated)'
,
async
()
=>
{
const
browser
=
await
next
.
browser
(
'/'
)
const
outputIndex
=
next
.
cliOutput
.
length
await
browser
.
elementByCss
(
'#array-arg-action'
).
click
()
await
browser
.
waitForElementByCss
(
'#result'
)
await
retry
(()
=>
{
const
logs
=
stripAnsi
(
next
.
cliOutput
.
slice
(
outputIndex
))
expect
(
logs
).
toContain
(
'└─ ƒ arrayArgAction'
)
// Arrays are truncated by safe-stable-stringify
expect
(
logs
).
toMatch
(
/└─ ƒ arrayArgAction
\(\[
1,2,3,.*
\]\)
in
\d
+ms/
)
})
})
it
(
'should log redirect action'
,
async
()
=>
{
const
browser
=
await
next
.
browser
(
'/'
)
const
outputIndex
=
next
.
cliOutput
.
length
await
browser
.
elementByCss
(
'#redirect-action'
).
click
()
await
browser
.
waitForElementByCss
(
'#redirect-target'
)
await
retry
(()
=>
{
const
logs
=
stripAnsi
(
next
.
cliOutput
.
slice
(
outputIndex
))
expect
(
logs
).
toContain
(
'└─ ƒ redirectAction'
)
expect
(
logs
).
toMatch
(
/└─ ƒ redirectAction
\(
"
\/
redirect-target"
\)
in
\d
+ms/
)
})
})
it
(
'should log notFound action'
,
async
()
=>
{
const
browser
=
await
next
.
browser
(
'/'
)
const
outputIndex
=
next
.
cliOutput
.
length
await
browser
.
elementByCss
(
'#not-found-action'
).
click
()
await
retry
(()
=>
{
const
logs
=
stripAnsi
(
next
.
cliOutput
.
slice
(
outputIndex
))
expect
(
logs
).
toContain
(
'└─ ƒ notFoundAction'
)
expect
(
logs
).
toMatch
(
/└─ ƒ notFoundAction
\(\)
in
\d
+ms/
)
})
})
it
(
'should log error action'
,
async
()
=>
{
const
browser
=
await
next
.
browser
(
'/'
)
const
outputIndex
=
next
.
cliOutput
.
length
await
browser
.
elementByCss
(
'#error-action'
).
click
()
await
browser
.
waitForElementByCss
(
'#error'
)
await
retry
(()
=>
{
const
logs
=
stripAnsi
(
next
.
cliOutput
.
slice
(
outputIndex
))
expect
(
logs
).
toContain
(
'└─ ƒ errorAction'
)
expect
(
logs
).
toMatch
(
/└─ ƒ errorAction
\(\)
in
\d
+ms/
)
})
})
it
(
'should log server action with promise argument'
,
async
()
=>
{
const
browser
=
await
next
.
browser
(
'/'
)
const
outputIndex
=
next
.
cliOutput
.
length
await
browser
.
elementByCss
(
'#promise-arg-action'
).
click
()
await
browser
.
waitForElementByCss
(
'#result'
)
await
retry
(()
=>
{
const
logs
=
stripAnsi
(
next
.
cliOutput
.
slice
(
outputIndex
))
expect
(
logs
).
toContain
(
'└─ ƒ promiseArgAction'
)
expect
(
logs
).
toMatch
(
/└─ ƒ promiseArgAction
\(
.*
\)
in
\d
+ms/
)
})
})
it
(
'should log inline action'
,
async
()
=>
{
const
browser
=
await
next
.
browser
(
'/inline'
)
await
browser
.
waitForElementByCss
(
'#inline-page'
)
const
outputIndex
=
next
.
cliOutput
.
length
await
browser
.
elementByCss
(
'#true-inline-action'
).
click
()
await
browser
.
waitForElementByCss
(
'#result'
)
await
retry
(()
=>
{
const
logs
=
stripAnsi
(
next
.
cliOutput
.
slice
(
outputIndex
))
// Inline actions show as <inline action> with file location
expect
(
logs
).
toMatch
(
/└─ ƒ <inline action>
\(
10
\)
in
\d
+ms app
\/
inline
\/
page
\.
js/
)
})
})
it
(
'should show relative file path in log'
,
async
()
=>
{
const
browser
=
await
next
.
browser
(
'/'
)
const
outputIndex
=
next
.
cliOutput
.
length
await
browser
.
elementByCss
(
'#success-action'
).
click
()
await
browser
.
waitForElementByCss
(
'#result'
)
await
retry
(()
=>
{
const
logs
=
stripAnsi
(
next
.
cliOutput
.
slice
(
outputIndex
))
// Should show relative path like app/actions.js, not full path
expect
(
logs
).
toMatch
(
/app
\/
actions
\.
js/
)
// Should not contain the test directory prefix
expect
(
logs
).
not
.
toContain
(
'test/e2e/app-dir/server-action-logging/'
)
})
})
})
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