You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(config): correct directory traversal in .env search
- Fixes a subtle error in the directory traversal logic within the
`EnvironmentConfig._loadEnv` method. The previous implementation had a flaw
in how it checked for the parent directory, which could prevent it from
correctly locating the `pubspec.yaml` and `.env` files in certain project
structures or when the Dart Frog development server starts from a
subdirectory.
- The corrected logic now accurately traverses up the directory tree,
repeatedly checking if the parent directory is the same as the current
directory (indicating the root of the filesystem). This ensures that the
search correctly identifies the project root and locates the `.env` file.
0 commit comments