Skip to content

Commit 8a66f46

Browse files
committed
push upstash redis along too...
1 parent 3b96cc9 commit 8a66f46

File tree

4 files changed

+35
-6
lines changed

4 files changed

+35
-6
lines changed

dist/index.js

Lines changed: 13 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/coolify.ts

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,10 +269,15 @@ export default class Coolify {
269269
envs
270270
}: {
271271
serviceUUID: string
272-
envs: { key: string; value: string | undefined; isMultiLine?: boolean }[]
272+
envs: {
273+
key: string
274+
value: string | undefined
275+
isMultiLine?: boolean
276+
optional?: boolean
277+
}[]
273278
}) {
274279
for (const env of envs) {
275-
if (!env.value && env.key !== 'SENTRY_DSN') {
280+
if (!env.value && !env.optional) {
276281
throw new Error(`Env ${env.key} has no value`)
277282
}
278283
await this.createOrUpdateEnv({
@@ -466,7 +471,18 @@ export default class Coolify {
466471
},
467472
{
468473
key: 'SENTRY_DSN',
469-
value: process.env.SENTRY_DSN
474+
value: process.env.SENTRY_DSN,
475+
optional: true
476+
},
477+
{
478+
key: 'UPSTASH_REDIS_REST_URL',
479+
value: process.env.UPSTASH_REDIS_REST_URL,
480+
optional: true
481+
},
482+
{
483+
key: 'UPSTASH_REDIS_REST_TOKEN',
484+
value: process.env.UPSTASH_REDIS_REST_TOKEN,
485+
optional: true
470486
}
471487
]
472488
})

supabase-pawtograder.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -827,6 +827,8 @@ services:
827827
- 'GITHUB_OAUTH_CLIENT_SECRET=${GITHUB_OAUTH_CLIENT_SECRET}'
828828
- 'GITHUB_PRIVATE_KEY_STRING=${GITHUB_PRIVATE_KEY_STRING}'
829829
- 'EDGE_FUNCTION_SECRET=${EDGE_FUNCTION_SECRET}'
830+
- 'UPSTASH_REDIS_REST_URL=${UPSTASH_REDIS_REST_URL}'
831+
- 'UPSTASH_REDIS_REST_TOKEN=${UPSTASH_REDIS_REST_TOKEN}'
830832
- 'SENTRY_DSN=${SENTRY_DSN}'
831833
volumes:
832834
- './volumes/functions:/home/deno/functions'

0 commit comments

Comments
 (0)