mirror of
https://github.com/documenso/documenso.git
synced 2025-11-15 01:01:49 +10:00
11 lines
337 B
TypeScript
11 lines
337 B
TypeScript
/* eslint-disable turbo/no-undeclared-env-vars */
|
|
import { Redis } from '@upstash/redis';
|
|
|
|
import { env } from '../../utils/env';
|
|
|
|
// !: We're null coalescing here because we don't want local builds to fail.
|
|
export const redis = new Redis({
|
|
url: env('NEXT_PRIVATE_REDIS_URL') ?? '',
|
|
token: env('NEXT_PRIVATE_REDIS_TOKEN') ?? '',
|
|
});
|