fix: Improve the reliability of the cache file - AAI-619 - #505
Merged
Conversation
hotfix: Google OAuth Button Not Appearing
## Summary This commit modifies the path for the cache file in the `readConfigFileWithFallback` function to utilize `dirname` instead of `process.cwd()`, ensuring that the cache file is correctly located relative to the current module's directory. ## Changes - Updated the cache file path from `path.join(process.cwd(), '.bwsconfig.cache')` to `path.join(dirname, '.bwsconfig.cache')`. This change improves the reliability of the cache file's location, particularly in environments where the working directory may differ from the module's directory.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
maxtechera
temporarily deployed
to
staging - theanswer-iek0
August 21, 2025 22:51 — with
Render
Inactive
|
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
This commit modifies the path for the cache file in the
readConfigFileWithFallbackfunction to utilizedirnameinstead ofprocess.cwd(), ensuring that the cache file is correctly located relative to the current module's directory.Changes
path.join(process.cwd(), '.bwsconfig.cache')topath.join(dirname, '.bwsconfig.cache').This change improves the reliability of the cache file's location, particularly in environments where the working directory may differ from the module's directory.