Skip to content

Commit 7c4ae4a

Browse files
committed
WIP test
1 parent 0e0a265 commit 7c4ae4a

File tree

6 files changed

+65
-0
lines changed

6 files changed

+65
-0
lines changed

bench/app2/app/foo/route.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export function GET() {
2+
return new Response('app-route (node)')
3+
}

bench/app2/app/layout.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import React from 'react'
2+
3+
export default function Layout({ children }) {
4+
return (
5+
<html>
6+
<head>
7+
<title>My App</title>
8+
</head>
9+
<body>{children}</body>
10+
</html>
11+
)
12+
}

bench/app2/app/page.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
export default function Page() {
2+
return <h1>My Page</h1>
3+
}
4+
5+
// export const runtime = 'edge'

bench/app2/next-env.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/// <reference types="next" />
2+
/// <reference types="next/image-types/global" />
3+
import './.next/types/routes.d.ts'
4+
5+
// NOTE: This file should not be edited
6+
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

bench/app2/next.config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = {
2+
experimental: {
3+
turbopackMinify: false,
4+
turbopackModuleIds: 'named',
5+
turbopackScopeHoisting: false,
6+
},
7+
}

bench/app2/tsconfig.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"compilerOptions": {
3+
"target": "ES2017",
4+
"lib": ["dom", "dom.iterable", "esnext"],
5+
"allowJs": true,
6+
"skipLibCheck": true,
7+
"strict": false,
8+
"noEmit": true,
9+
"incremental": true,
10+
"module": "esnext",
11+
"esModuleInterop": true,
12+
"moduleResolution": "node",
13+
"resolveJsonModule": true,
14+
"isolatedModules": true,
15+
"jsx": "react-jsx",
16+
"plugins": [
17+
{
18+
"name": "next"
19+
}
20+
],
21+
"strictNullChecks": true
22+
},
23+
"include": [
24+
"next-env.d.ts",
25+
".next/types/**/*.ts",
26+
".next/dev/types/**/*.ts",
27+
"**/*.mts",
28+
"**/*.ts",
29+
"**/*.tsx"
30+
],
31+
"exclude": ["node_modules", "**/*.test.ts", "**/*.test.tsx"]
32+
}

0 commit comments

Comments
 (0)