Skip to content

Commit 14d194a

Browse files
committed
WIP
1 parent 95ee107 commit 14d194a

File tree

10 files changed

+59
-22
lines changed

10 files changed

+59
-22
lines changed

bench/basic-app/app/api/app/route.js

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { clear } from './cache'
2+
3+
export async function handlePath() {
4+
await clear()
5+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
export const config = {
2+
api: {
3+
bodyParser: {
4+
sizeLimit: '20mb',
5+
},
6+
},
7+
}
8+
9+
export async function clear() {}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
'use client'
2+
3+
import { handlePath } from './actions'
4+
5+
export function RevalidateFields() {
6+
console.log(handlePath)
7+
return <h3>Revalidate path</h3>
8+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { handlePath } from './actions'
2+
3+
console.log(handlePath)
4+
5+
export default async function Page() {
6+
return 'Hello'
7+
}

bench/basic-app/app/page.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

bench/basic-app/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/basic-app/pages/api/page-api.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

bench/basic-app/pages/pages/index.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

bench/basic-app/tsconfig.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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": "preserve",
16+
"plugins": [
17+
{
18+
"name": "next"
19+
}
20+
]
21+
},
22+
"include": ["next-env.d.ts", ".next/types/**/*.ts", "**/*.ts", "**/*.tsx"],
23+
"exclude": ["node_modules", "**/*.test.ts", "**/*.test.tsx"]
24+
}

0 commit comments

Comments
 (0)