Files
Portfolio/package.json
T
damjan_savicandClaude Sonnet 4.5 4ab5f2ddfe fix: add @next-safe/middleware and restore static headers (qa-requested - partial)
- 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>
2026-01-25 13:03:32 +01:00

56 lines
1.6 KiB
JSON

{
"name": "portfolio",
"private": true,
"version": "1.0.0",
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint --strict",
"build:images": "node scripts/optimize-images.js",
"generate:images": "node scripts/generate-blog-images.mjs",
"generate:images:dry": "node scripts/generate-blog-images.mjs --dry-run",
"test": "vitest",
"test:coverage": "vitest run --coverage"
},
"dependencies": {
"@next-safe/middleware": "^0.10.0",
"openai": "^4.77.0",
"@mdx-js/loader": "^3.1.0",
"@mdx-js/mdx": "^3.1.0",
"@mdx-js/react": "^3.1.0",
"@next/mdx": "^15.1.0",
"@supabase/ssr": "^0.8.0",
"@supabase/supabase-js": "^2.39.7",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"framer-motion": "^11.18.2",
"gray-matter": "^4.0.3",
"lucide-react": "^0.475.0",
"next": "^15.1.0",
"next-intl": "^3.26.0",
"next-mdx-remote": "^5.0.0",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-intersection-observer": "^9.8.1",
"tailwind-merge": "^3.0.1",
"tailwindcss-animate": "^1.0.7",
"web-vitals": "^5.1.0"
},
"devDependencies": {
"@tailwindcss/forms": "^0.5.7",
"@types/mdx": "^2.0.13",
"@types/node": "^22.0.0",
"@types/react": "^19.0.0",
"@types/react-dom": "^19.0.0",
"autoprefixer": "^10.4.18",
"eslint": "^9.9.1",
"eslint-config-next": "^15.1.0",
"postcss": "^8.4.35",
"sharp": "^0.34.3",
"tailwindcss": "^3.4.1",
"typescript": "^5.5.3",
"vitest": "^1.3.1"
}
}