In the middle you have something like Astro or Remix. More creature comforts but they try to be close to web standards. Remix forms can work without js.
Then on the opposite end you have Next. Monkey patching fetch method, headache inducing cache behavior (now probably finally gone by default), common breaking changes, strange middleware implementation, relying on unstable React features and most importantly the only-on-Vercel features: Incremental Static Regeneration, image optimization etc. No other framework needs sth like https://opennext.js.org/
[1] https://stackoverflow.com/questions/75526234/how-can-i-use-n...
The OP is building their product on top of Next and was asking about lock-in. I work with React codebases that are 8+ years old. Luckily no-one chose sth like Next so there is a flurry of additional libs, some fell out of fashion today but none of them prevented the app to evolve or be deployed wherever.
There is so much money in Vercel that I don't expect Next to die anytime soon but if sth more cool appears people on Next will have hard time migrating. Where someone sticking to more vanilla React can even easily switch to Solid or another non-React jsx solution.