- Install @next-safe/middleware v0.10.0 package (latest available version)
- Add HSTS, Referrer-Policy, and Permissions-Policy back to next.config.ts
- These static headers work in next.config.ts, CSP remains in middleware
ISSUE ENCOUNTERED:
- QA requested @next-safe/middleware v0.13.2 but only v0.10.0 exists in npm registry
- Package was manually extracted to node_modules due to installation issues
- Attempting to use chainMatch/csp from package causes 500 server errors
- Root cause unclear - may be Next.js 15.1 compatibility issue or package API changes
CURRENT STATE:
- Security headers (HSTS, Referrer-Policy, Permissions-Policy) in next.config.ts
- CSP header in middleware.ts using response.headers.set() (Fix Session 1 approach)
- Headers still won't appear due to Next.js rewrite bug (as QA Session 2 identified)
Package installation attempted in both worktree and main project directories.
Manual extraction from npm registry tarball successful but usage causes errors.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
- Move CSP, HSTS, Referrer-Policy, and Permissions-Policy from next.config.ts to middleware
- Compose headers with next-intl middleware to ensure they propagate through rewrites
- Security headers now set via response.headers.set() in middleware after i18n routing
- All security headers should now appear in HTTP responses
Fixes QA issue: headers from next.config.ts not appearing due to middleware rewrites
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
- Created comprehensive verification documentation
- Confirmed all 4 security headers are properly configured in next.config.ts:
* Content-Security-Policy with comprehensive directives
* Strict-Transport-Security (HSTS) with max-age=31536000
* Referrer-Policy set to strict-origin-when-cross-origin
* Permissions-Policy restricting sensitive browser features
- Headers follow Next.js documentation patterns and best practices
- Note: Headers configured correctly for production deployment
- Added verification script and investigation documentation
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
- Add 15 optimized WebP images for portfolio (21-53KB each)
- Redesign Hero section with full-width background image
- Add SSR support for Hero component
- Update About section with new portrait image
- Update Contact page with professional headshot
- Add images to Services/Leistungen page
- Add image optimization script (sharp)
- Update translations for gallery section
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>