Enrol Now

: This file should never be committed to Git (it is usually added to .gitignore ). It is intended to hold sensitive secrets like production database credentials or API keys that are unique to a particular deployment instance.

| File | Gitignore | Load in dev | Load in prod | Purpose | |--------------------------|-----------|-------------|--------------|---------| | .env | ❌ No | ✅ Yes | ✅ Yes | Defaults | | .env.local | ✅ Yes | ✅ Yes | ❌ No | Local overrides (dev only) | | .env.production | ❌ No | ❌ No | ✅ Yes | Production defaults | | .env.production.local | ✅ Yes | ❌ No | ✅ Yes | |

The framework will look for variables in this order (later files override earlier ones):

Like all .local files, this should never be committed to version control. It is meant to reside only on the specific machine where the production build is being tested or hosted.

What Students Say

REVIEWS.CO.UK