Commit 5852e11
feat(config): enhance Next.js configuration with security and performance optimizations
Add comprehensive security headers and optimize caching strategies
for better performance and security posture.
Security enhancements:
- Add X-DNS-Prefetch-Control, X-Frame-Options, X-Content-Type-Options
- Implement Referrer-Policy and Permissions-Policy headers
- Apply security headers consistently across all routes
Performance optimizations:
- Expand image device sizes and optimize image settings
- Add aggressive caching for static assets, fonts, and images
- Implement stale-while-revalidate for OG images
- Configure Turbopack rules placeholder
Additional improvements:
- Add TypeScript and ESLint build validation
- Enable SEO-friendly URL format (no trailing slashes)
- Add remote image patterns configuration structure
- Improve code organization with extracted security headers
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 705253e commit 5852e11
1 file changed
+70
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
15 | 39 | | |
16 | 40 | | |
17 | 41 | | |
18 | 42 | | |
19 | 43 | | |
20 | 44 | | |
21 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
22 | 49 | | |
23 | 50 | | |
24 | 51 | | |
25 | | - | |
26 | | - | |
| 52 | + | |
| 53 | + | |
27 | 54 | | |
28 | 55 | | |
29 | 56 | | |
30 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
31 | 66 | | |
32 | 67 | | |
33 | 68 | | |
| |||
38 | 73 | | |
39 | 74 | | |
40 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
41 | 82 | | |
42 | 83 | | |
43 | 84 | | |
| |||
48 | 89 | | |
49 | 90 | | |
50 | 91 | | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
51 | 104 | | |
52 | 105 | | |
53 | 106 | | |
| 107 | + | |
54 | 108 | | |
55 | 109 | | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
| 110 | + | |
70 | 111 | | |
| 112 | + | |
71 | 113 | | |
72 | 114 | | |
73 | 115 | | |
| |||
77 | 119 | | |
78 | 120 | | |
79 | 121 | | |
| 122 | + | |
80 | 123 | | |
81 | 124 | | |
82 | 125 | | |
| |||
86 | 129 | | |
87 | 130 | | |
88 | 131 | | |
| 132 | + | |
89 | 133 | | |
90 | 134 | | |
91 | 135 | | |
| |||
95 | 139 | | |
96 | 140 | | |
97 | 141 | | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
98 | 152 | | |
99 | 153 | | |
100 | 154 | | |
| |||
0 commit comments