If the issue persists during deployment on Vercel, use their build logs to identify when and where "https:" is added. Add the following line to your build script to print the package.json during the build:
json
Copy
Edit
"build": "cat package.json && next build"