mirror of
https://github.com/pheralb/svgl.git
synced 2024-11-13 08:46:56 +08:00
fix: env cause build error
This commit is contained in:
parent
61658f8b74
commit
44ad5e2a1f
@ -1,10 +1,10 @@
|
|||||||
import { Redis } from '@upstash/redis';
|
import { Redis } from '@upstash/redis';
|
||||||
import { Ratelimit } from '@upstash/ratelimit';
|
import { Ratelimit } from '@upstash/ratelimit';
|
||||||
import { UPSTASH_REDIS_TOKEN, UPSTASH_REDIS_URL, SVGL_API_REQUESTS } from '$env/static/private';
|
import { UPSTASH_REDIS_REST_TOKEN, UPSTASH_REDIS_REST_URL, SVGL_API_REQUESTS } from '$env/static/private';
|
||||||
|
|
||||||
const redis = new Redis({
|
const redis = new Redis({
|
||||||
url: UPSTASH_REDIS_URL,
|
url: UPSTASH_REDIS_REST_URL,
|
||||||
token: UPSTASH_REDIS_TOKEN
|
token: UPSTASH_REDIS_REST_TOKEN
|
||||||
});
|
});
|
||||||
|
|
||||||
export const ratelimit = new Ratelimit({
|
export const ratelimit = new Ratelimit({
|
||||||
|
Loading…
Reference in New Issue
Block a user