Commit 1ebda22
Add i18n caching documentation and update CLAUDE.md
Document the root cause of random locale switching on Vercel:
- next-intl's localeDetection reads Accept-Language header
- This triggers dynamic rendering in Next.js
- Vercel can't cache dynamic pages properly
Includes:
- Detailed technical analysis with request flow
- Three solution options with pros/cons
- Step-by-step implementation guide
- Testing plan and debug commands
- Links to relevant Next.js/next-intl issues
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent d1cbd64 commit 1ebda22
File tree
3 files changed
+431
-15
lines changed- docs
- i18n
3 files changed
+431
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | 24 | | |
36 | 25 | | |
37 | 26 | | |
| |||
76 | 65 | | |
77 | 66 | | |
78 | 67 | | |
79 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
80 | 71 | | |
81 | | - | |
| 72 | + | |
| 73 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
0 commit comments