Skip to content

Commit c044e46

Browse files
committed
Add test page to show symbol in output
1 parent 093b259 commit c044e46

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

test/production/app-dir/build-output-tree-view/build-output-tree-view.test.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ describe('build-output-tree-view', () => {
2222
├ ƒ /api N/A kB N/A kB
2323
├ ○ /api/force-static N/A kB N/A kB
2424
├ ○ /app-static N/A kB N/A kB
25-
├ ○ /cache-life N/A kB N/A kB 1h 1d
25+
├ ○ /cache-life-custom N/A kB N/A kB ≈7m ≈2h
26+
├ ○ /cache-life-hours N/A kB N/A kB 1h 1d
2627
├ ƒ /dynamic N/A kB N/A kB
2728
├ ◐ /ppr/[slug] N/A kB N/A kB 1w 30d
2829
├ ├ /ppr/[slug] 1w 30d
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
'use cache'
2+
3+
import { unstable_cacheLife } from 'next/cache'
4+
5+
export default async function Page() {
6+
unstable_cacheLife({ revalidate: 412, expire: 8940 })
7+
8+
return <p>hello world</p>
9+
}

0 commit comments

Comments
 (0)