2023-06-09 18:21:18 +10:00
|
|
|
/* eslint-disable turbo/no-undeclared-env-vars */
|
|
|
|
|
import { Redis } from '@upstash/redis';
|
|
|
|
|
|
2025-01-31 14:09:02 +11:00
|
|
|
import { env } from '../../utils/env';
|
|
|
|
|
|
2023-06-09 18:21:18 +10:00
|
|
|
// !: We're null coalescing here because we don't want local builds to fail.
|
|
|
|
|
export const redis = new Redis({
|
2025-01-31 14:09:02 +11:00
|
|
|
url: env('NEXT_PRIVATE_REDIS_URL') ?? '',
|
|
|
|
|
token: env('NEXT_PRIVATE_REDIS_TOKEN') ?? '',
|
2023-06-09 18:21:18 +10:00
|
|
|
});
|