Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(core): additional .local patterns for .env files #19163

Merged
merged 1 commit into from
Jun 4, 2024

Conversation

stefan-schweiger
Copy link
Contributor

Current Behavior

Loading order of .env files

  1. apps/my-app/.env.[target-name].[target-configuration-name]
  2. apps/my-app/.env.[target-name]
  3. apps/my-app/.[target-name].[target-configuration-name].env
  4. apps/my-app/.[target-name].env
  5. apps/my-app/.env.local
  6. apps/my-app/.local.env
  7. apps/my-app/.env
  8. .env.[target-name].[target-configuration-name]
  9. .env.[target-name]
  10. .[target-name].[target-configuration-name].env
  11. .[target-name].env
  12. .env.local
  13. .local.env
  14. .env

Expected Behavior

  1. apps/my-app/.env.[target-name].[target-configuration-name].local
  2. apps/my-app/.env.[target-name].[target-configuration-name]
  3. apps/my-app/.env.[target-name].local
  4. apps/my-app/.env.[target-name]
  5. apps/my-app/.[target-name].[target-configuration-name].local.env
  6. apps/my-app/.[target-name].[target-configuration-name].env
  7. apps/my-app/.[target-name].local.env
  8. apps/my-app/.[target-name].env
  9. apps/my-app/.env.local
  10. apps/my-app/.local.env
  11. apps/my-app/.env
  12. .env.[target-name].[target-configuration-name].local
  13. .env.[target-name].[target-configuration-name]
  14. .env.[target-name].local
  15. .env.[target-name]
  16. .[target-name].[target-configuration-name].local.env
  17. .[target-name].[target-configuration-name].env
  18. .[target-name].local.env
  19. .[target-name].env
  20. .env.local
  21. .local.env
  22. .env

Related Issue(s)

#19161

@vercel
Copy link

vercel bot commented Sep 14, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nx-dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 4, 2024 7:21pm

@stefan-schweiger stefan-schweiger changed the title Patch env local feat(core): additional .local patterns for .env files Sep 14, 2023
@stefan-schweiger
Copy link
Contributor Author

@FrozenPandaz @vsavkin any change of getting this reviewed?

@AgentEnder AgentEnder enabled auto-merge (squash) June 4, 2024 20:05
@AgentEnder AgentEnder disabled auto-merge June 4, 2024 20:05
@AgentEnder AgentEnder merged commit 215bc42 into nrwl:master Jun 4, 2024
6 checks passed
Copy link

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants