From 133ce39a13cb90733bc0aac220ea179e34fd4430 Mon Sep 17 00:00:00 2001 From: Fred Date: Thu, 14 Mar 2024 01:33:41 +0800 Subject: [PATCH] chore: update cors default path --- app/constant.ts | 2 +- app/utils/cloud/upstash.ts | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/app/constant.ts b/app/constant.ts index c1f91d31c..904170687 100644 --- a/app/constant.ts +++ b/app/constant.ts @@ -23,7 +23,7 @@ export enum Path { } export enum ApiPath { - Cors = "/api/cors", + Cors = "", OpenAI = "/api/openai", } diff --git a/app/utils/cloud/upstash.ts b/app/utils/cloud/upstash.ts index 831aa8902..f5579cea0 100644 --- a/app/utils/cloud/upstash.ts +++ b/app/utils/cloud/upstash.ts @@ -81,8 +81,6 @@ export function createUpstashClient(store: SyncStore) { }; }, path(path: string, proxyUrl: string = "") { - // let url = config.endpoint; - if (!path.endsWith("/")) { path += "/"; }