Open fellmann opened 9 months ago
but deploy on varcel this was been occured error like this :
npm ERR! code ERESOLVE -- 19:46:52.116 | npm ERR! ERESOLVE could not resolve 19:46:52.117 | npm ERR! 19:46:52.117 | npm ERR! While resolving: next-auth@4.24.5 19:46:52.117 | npm ERR! Found: next@14.1.1-canary.6 19:46:52.117 | npm ERR! node_modules/next 19:46:52.118 | npm ERR! next@"^14.1.1-canary.6" from the root project 19:46:52.118 | npm ERR! 19:46:52.118 | npm ERR! Could not resolve dependency: 19:46:52.118 | npm ERR! peer next@"^12.2.5 \|\| ^13 \|\| ^14" from next-auth@4.24.5 19:46:52.118 | npm ERR! node_modules/next-auth 19:46:52.119 | npm ERR! next-auth@"^4.24.5" from the root project 19:46:52.119 | npm ERR! 19:46:52.119 | npm ERR! Conflicting peer dependency: next@14.1.0 19:46:52.119 | npm ERR! node_modules/next 19:46:52.119 | npm ERR! peer next@"^12.2.5 \|\| ^13 \|\| ^14" from next-auth@4.24.5 19:46:52.120 | npm ERR! node_modules/next-auth 19:46:52.120 | npm ERR! next-auth@"^4.24.5" from the root project 19:46:52.120 | npm ERR! 19:46:52.120 | npm ERR! Fix the upstream dependency conflict, or retry 19:46:52.120 | npm ERR! this command with --force or --legacy-peer-deps 19:46:52.120 | npm ERR! to accept an incorrect (and potentially broken) dependency resolution. 19:46:52.120 | npm ERR! 19:46:52.121 | npm ERR! 19:46:52.121 | npm ERR! For a full report see: 19:46:52.122 | npm ERR! /vercel/.npm/_logs/2024-01-23T14_16_50_716Z-eresolve-report.txt 19:46:52.122 | 19:46:52.122 | npm ERR! A complete log of this run can be found in: /vercel/.npm/_logs/2024-01-23T14_16_50_716Z-debug-0.log 19:46:52.134 | Error: Command "npm install" exited with 1
Link to the code that reproduces this issue
https://codesandbox.io/p/devbox/lucid-haslett-2k2psv
To Reproduce
next build
next start
Current vs. Expected behavior
Current behavior: pages (
/
) and api (/api/test
) do not respond with aCache-Control
header, resulting in random stale responses. Expected behavior: a default (maybe configurable) cache-control policy is used, like when deploying to Vercel - see https://vercel.com/docs/edge-network/headers#cache-controlProvide environment information
Which area(s) are affected? (Select all that apply)
Middleware / Edge (API routes, runtime)
Which stage(s) are affected? (Select all that apply)
next start (local)
Additional context
No response