⚙️ Trying to fix prod deployment
📦 Build / 🛠️ Build app (push) Has been cancelled
🧑‍🚀 Check / 📦 SVGs Size (push) Has been cancelled
🧑‍🚀 Check / ⚡ Testing with Vitest (push) Has been cancelled
🚀 Deploy / ☁️ API (push) Has been cancelled

This commit is contained in:
pheralb
2025-07-13 20:51:48 +01:00
parent a1ecb75140
commit 6fc3130fba
+3 -1
View File
@@ -2,8 +2,10 @@ import { Redis } from '@upstash/redis';
import { Ratelimit } from '@upstash/ratelimit';
import { UPSTASH_REDIS_TOKEN, UPSTASH_REDIS_URL, SVGL_API_REQUESTS } from '$env/static/private';
const cleanUrl = UPSTASH_REDIS_URL.replace(/^['"]|['"]$/g, '').trim();
const redis = new Redis({
url: UPSTASH_REDIS_URL,
url: cleanUrl,
token: UPSTASH_REDIS_TOKEN
});