Skip to content

Commit 70207b5

Browse files
committed
fix: use env for redis url
1 parent f5049e2 commit 70207b5

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

packages/s3/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ const {
1010
FORCE_PATH_STYLE,
1111
ACCESS_CONTROL_ALLOW_ORIGIN,
1212
PRE_SIGNED_URL_EXPIRE_IN,
13-
REDIS_URL, // in seconds
14-
} = Bun.env;
13+
REDIS_URL,
14+
} = process.env;
1515

1616
const requiredEnvVars = {
1717
S3_REGION,
@@ -22,7 +22,7 @@ const requiredEnvVars = {
2222
FORCE_PATH_STYLE,
2323
ACCESS_CONTROL_ALLOW_ORIGIN,
2424
PRE_SIGNED_URL_EXPIRE_IN,
25-
REDIS_URL,
25+
REDIS_URL: process.env.REDIS_URL,
2626
};
2727

2828
for (const [key, value] of Object.entries(requiredEnvVars)) {

packages/s3/src/worker-preview.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export type PreviewJob = {
5050
};
5151

5252
// Env
53-
const { REDIS_URL, DATABASE_URL, S3_BUCKET } = process.env as Record<
53+
const { REDIS_URL, DATABASE_URL } = process.env as Record<
5454
string,
5555
string | undefined
5656
>;

0 commit comments

Comments
 (0)