Skip to content

fix: Improve the reliability of the cache file - AAI-619 - #505

Merged
ct3685 merged 3 commits into
productionfrom
staging
Aug 21, 2025
Merged

fix: Improve the reliability of the cache file - AAI-619#505
ct3685 merged 3 commits into
productionfrom
staging

Conversation

@ct3685

@ct3685 ct3685 commented Aug 21, 2025

Copy link
Copy Markdown

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.

ct3685 added 2 commits August 21, 2025 16:02
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.
@vercel

vercel Bot commented Aug 21, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
answerai-docs Building Building Preview Aug 21, 2025 10:50pm
the-answerai Building Building Preview Aug 21, 2025 10:50pm

@ct3685
ct3685 merged commit 48f3172 into production Aug 21, 2025
5 of 6 checks passed
@maxtechera
maxtechera temporarily deployed to staging - theanswer-iek0 August 21, 2025 22:51 — with Render Inactive
@sonarqubecloud

Copy link
Copy Markdown

@ct3685 ct3685 changed the title fix: Improve the reliability of the cache file fix: Improve the reliability of the cache file - AAI-619 Aug 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants