Skip to content

Commit f93f4d0

Browse files
authored
fix: rm upstash/redis dependency and add telemetry manually (#2)
1 parent 6af91aa commit f93f4d0

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

bun.lockb

-698 Bytes
Binary file not shown.

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555
"react-dom": "^18.2.0 || ^19"
5656
},
5757
"dependencies": {
58-
"@radix-ui/react-scroll-area": "^1.0.3",
59-
"@upstash/redis": "^1.35.3"
58+
"@radix-ui/react-scroll-area": "^1.0.3"
6059
}
6160
}

src/redis-cli.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,11 @@ export const RedisCli: React.FC<CliProps> = (props) => {
143143
headers: {
144144
"Content-Type": "application/json",
145145
Authorization: `Bearer ${props.token}`,
146+
...(process.env.UPSTASH_CONSOLE
147+
? {
148+
"Upstash-Telemetry-Platform": "console",
149+
}
150+
: {}),
146151
},
147152
body: JSON.stringify(args),
148153
})

0 commit comments

Comments
 (0)