bunx next-dontThis patches your local node_modules/next to prevent Next.js from making unnecessary changes to the tsconfig.json.
For convenience, add next-dont to the prepare script in package.json so the patch is applied automatically after every dependency install:
{
"scripts": {
"prepare": "bunx next-dont"
}
}