Closed ibolmo closed 3 weeks ago
Hi :) Thanks for opening the issue! This issue was brought up and fixed, yet not released - 2387. It will be officially released in a month, and meanwhile a release candidate will be out very soon with the fix. I'm closing the issue, please follow up in the issue linked, I'll post there when the candidate is out and can be used.
Describe the bug
Deploying @valkey/valkey-glide to Vercel / nextjs will crash the serverless functions:
Tried multiple workarounds:
But I still ran into the same problem. I believe the library is initializing the library on load of the module.
Expected Behavior
Make file appending lazy such that
setLoggerConfig
with an undefined file name disables file name based logging.Current Behavior
The library attempts to create a logging directory automatically.
Reproduction Steps
config -> experimental -> serverComponentsExternalPackages
to include"@valkey/valkey-glide"
Possible Solution
Avoid creating the directory until logs are configured. Perhaps always assume stdout and only if configured to use files should the library use file logging.
Additional Information/Context
No response
Client version used
1.1.0
Engine type and version
Redis 7.x
OS
Vercel
Language
TypeScript
Language Version
TypeScript ^5.0.3
Cluster information
No response
Logs
No response
Other information
No response