drizzle-team / drizzle-team/drizzle-orm
[BUG]:@upstash/redis doesnt work in cloudflare environments
Open
bug
- Dominant language
- TypeScript
- Stars
- 35.8k
- Forks
- 1.6k
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 4
Description
### Report hasn't been filed before.
- [x] I have verified that the bug I'm about to report hasn't been filed before.
### What version of `drizzle-orm` are you using?
0.44.0
### What version of `drizzle-kit` are you using?
0.31.1
### Other packages
_No response_
### Describe the Bug
https://github.com/drizzle-team/drizzle-orm/blob/50a8b163e6209e7dbd72e370556d0a87ec01fd8f/drizzle-orm/src/cache/upstash/cache.ts#L1
This hardcodes the import from `"@upstash/cache"`, however in cloudfront environments you must import from `"@upstash/redis/cloudflare"`.
The redis instance needs to be configurable.
Contributor guide
Assessment
This issue has not been assessed yet.