.env File Validator
Compare your `.env` and `.env.example` files to ensure they are in sync and catch missing variables.
This tool helps prevent "It works on my machine!" errors by ensuring your environment variables are consistent with your project's template.
1. Paste Your File Contents
Copy the entire contents of your local `.env` file (the one with your secret keys) and paste it into the left-hand text box. Then, copy the contents of your `.env.example` file (the one you commit to Git) and paste it into the right-hand box.
2. Validate
Click the "Validate Files" button. The tool will parse both files and compare the variable keys defined in each.
3. Review the Results
The results section will show you two lists: variables that are "Missing" from your main `.env` file (which can cause crashes) and variables that are "Extra" (which should probably be added to your `.env.example` file for other developers).
4. Apply Fixes
For "Missing" variables, add them to your `.env` file with the appropriate values. For "Extra" variables, add them to your `.env.example` file, usually with an empty value (e.g., `NEW_API_KEY=`), so that other developers know this variable is required.