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
67ff7127
Commit
67ff7127
authored
Sep 30, 2025
by
Niklas Mischkulnig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP
parent
f230aa3b
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
195 additions
and
33 deletions
+195
-33
layout.js
bench/app-router-server/app/layout.js
+0
-10
route.js
bench/app-router-server/app/route.js
+24
-0
page.js
bench/app-router-server/app/rsc/page.js
+0
-5
next.config.js
bench/app-router-server/next.config.js
+28
-4
package.json
bench/app-router-server/package.json
+2
-1
index.js
bench/app-router-server/pages/index.js
+0
-9
pnpm-lock.yaml
pnpm-lock.yaml
+141
-4
No files found.
bench/app-router-server/app/layout.js
deleted
100644 → 0
View file @
f230aa3b
import
*
as
React
from
'react'
export
default
function
Root
({
children
})
{
return
(
<
html
>
<
head
><
/head
>
<
body
>
{
children
}
<
/body
>
<
/html
>
)
}
bench/app-router-server/app/route.js
0 → 100644
View file @
67ff7127
import
{
createTwoslasher
}
from
'twoslash'
import
ts
from
'typescript'
export
function
GET
(
request
)
{
try
{
const
options
=
request
.
nextUrl
.
searchParams
.
has
(
'esnext'
)
?
{
target
:
ts
.
ScriptTarget
.
ESNext
,
lib
:
[
'ESNext'
,
'DOM'
,
'esnext'
,
'dom'
,
'es2020'
],
}
:
{}
const
code
=
`type X = Promise<number>;
'hello'.toUpperCase()`
const
twoslasher
=
createTwoslasher
({
compilerOptions
:
options
,
})
const
result
=
twoslasher
(
code
)
return
Response
.
json
(
result
)
}
catch
(
e
)
{
return
Response
.
json
({
error
:
e
})
}
}
bench/app-router-server/app/rsc/page.js
deleted
100644 → 0
View file @
f230aa3b
import
*
as
React
from
'react'
export
default
function
page
()
{
return
<
div
>
hello
<
/div
>
}
bench/app-router-server/next.config.js
View file @
67ff7127
module
.
exports
=
{
const
path
=
require
(
'path'
)
experimental
:
{
appDir
:
true
,
/** @type {import('next').NextConfig} */
const
nextConfig
=
{
// output: 'standalone',
// TODO ideally, all of these manual includes wouldn't be necessary, but they are still needed for Webpack
outputFileTracingIncludes
:
process
.
env
.
TURBOPACK
?
undefined
:
{
'/'
:
[
'../../'
+
path
.
relative
(
process
.
cwd
(),
path
.
resolve
(
require
.
resolve
(
'typescript/package.json'
),
'..'
,
'lib'
,
'lib.*.d.ts'
)
),
'../../node_modules/@types/node/**'
,
],
},
},
serverExternalPackages
:
[
'twoslash'
],
}
}
// console.log(nextConfig.outputFileTracingIncludes)
module
.
exports
=
nextConfig
bench/app-router-server/package.json
View file @
67ff7127
...
@@ -6,7 +6,8 @@
...
@@ -6,7 +6,8 @@
"webpack-bundle-analyzer"
:
"^4.6.1"
,
"webpack-bundle-analyzer"
:
"^4.6.1"
,
"webpack-stats-plugin"
:
"^1.1.0"
,
"webpack-stats-plugin"
:
"^1.1.0"
,
"next"
:
"workspace:*"
,
"next"
:
"workspace:*"
,
"next-minimal-server"
:
"workspace:*"
"next-minimal-server"
:
"workspace:*"
,
"twoslash"
:
"0.3.4"
},
},
"scripts"
:
{
"scripts"
:
{
"build-application"
:
"next build"
,
"build-application"
:
"next build"
,
...
...
bench/app-router-server/pages/index.js
deleted
100644 → 0
View file @
f230aa3b
import
*
as
React
from
'react'
export
default
function
page
()
{
return
<
div
>
hello
world
<
/div
>
}
export
async
function
getServerSideProps
()
{
return
{}
}
pnpm-lock.yaml
View file @
67ff7127
This diff is collapsed.
Click to expand it.
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