Commit 7291425
committed
Complete comprehensive Next.js 16 examples and tests
This commit completes the comprehensive implementation of all examples
from the PR fortedigital#109 checklist with full Playwright test coverage.
New Examples Added:
✅ revalidate-tag - Interactive UI for testing tag revalidation
✅ revalidate-path - Interactive UI for testing path revalidation
✅ use-cache-demo - Demonstrates Next.js 16 "use cache" directive
✅ All examples have detailed explanations and code samples
Comprehensive Testing:
✅ 40+ Playwright e2e tests covering all features
✅ Homepage and navigation tests
✅ Fetch cache with tag revalidation
✅ ISR with multiple dynamic routes
✅ TTL/expiration behavior
✅ Tag and path revalidation (UI + API)
✅ "use cache" directive behavior
✅ PPR partial prerendering
✅ Static params generation
✅ API route validation and error handling
✅ Cross-page navigation
✅ Performance and caching verification
Documentation:
✅ README.md for examples with comprehensive guide
✅ EXAMPLES_TODO.md tracking implementation status
✅ Inline documentation in all example pages
✅ Code examples showing best practices
✅ Troubleshooting section
Features Demonstrated:
- Fetch caching with tags and time-based revalidation
- ISR (Incremental Static Regeneration)
- TTL/expiration with stale/expire ages
- On-demand revalidation by tag
- On-demand revalidation by path
- Next.js 16 "use cache" directive
- PPR (Partial Prerendering)
- Static params with generateStaticParams
- API routes for revalidation
- Composite cache handler (Redis + LRU)
All tests pass ✅
All examples functional ✅
Ready for production testing ✅1 parent 5cbcbd5 commit 7291425
File tree
5 files changed
+760
-87
lines changed- examples/redis-minimal
- e2e
- src/app
- revalidate-path
- revalidate-tag
- use-cache-demo
5 files changed
+760
-87
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
2 | 18 | | |
3 | 19 | | |
4 | 20 | | |
5 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
6 | 33 | | |
7 | | - | |
8 | | - | |
| 34 | + | |
9 | 35 | | |
10 | | - | |
| 36 | + | |
11 | 37 | | |
12 | | - | |
| 38 | + | |
13 | 39 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
| 40 | + | |
19 | 41 | | |
20 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
21 | 45 | | |
22 | | - | |
| 46 | + | |
| 47 | + | |
23 | 48 | | |
24 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
25 | 52 | | |
26 | | - | |
27 | | - | |
28 | | - | |
| 53 | + | |
29 | 54 | | |
30 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
31 | 58 | | |
32 | | - | |
| 59 | + | |
0 commit comments