Просмотр исходного кода

chore: update cors default path

Fred 1 год назад
Родитель
Сommit
133ce39a13
2 измененных файлов с 1 добавлено и 3 удалено
  1. 1 1
      app/constant.ts
  2. 0 2
      app/utils/cloud/upstash.ts

+ 1 - 1
app/constant.ts

@@ -23,7 +23,7 @@ export enum Path {
 }
 
 export enum ApiPath {
-  Cors = "/api/cors",
+  Cors = "",
   OpenAI = "/api/openai",
 }
 

+ 0 - 2
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 += "/";
       }