Audit env

This workflow ensures your local environment has all the necessary keys defined in .env.example.

  1. Comparison:
  2. It reads apps/platform/.env.example to get the list of required keys.
  3. It reads apps/platform/.env.local (keys only) to see what is defined.
  4. It reports any missing keys.

  5. Drift Detection:

  6. If .env.local has keys that are NOT in .env.example, it suggests adding them to the example (to keep the team in sync).

  7. Value Validation:

  8. Checks that NODE_ENV is valid.
  9. Checks that NEXT_PUBLIC_ keys have values.