Configuring environment variables for development and production on Vercel

When you deploy a website or web app on Vercel, you often need different settings for development (testing) and production (live users). Which variables should you set for each environment so your app works correctly and securely?