diff --git a/src/runtime/plugin.ts b/src/runtime/plugin.ts index 66f80d7..370fa33 100644 --- a/src/runtime/plugin.ts +++ b/src/runtime/plugin.ts @@ -34,11 +34,6 @@ export default defineNuxtPlugin(async ({ $config }) => { onRequest({ options }) { options.headers = options.headers || {} - // @ts-expect-error KV header type missing - if (defaultDB.KV && options.headers['surreal-KV'] === undefined) { - // @ts-expect-error KV header type missing - options.headers['surreal-KV'] = defaultDB.KV - } // @ts-expect-error NS header type missing if (defaultDB.NS && options.headers['surreal-NS'] === undefined) { // @ts-expect-error NS header type missing @@ -88,9 +83,6 @@ export default defineNuxtPlugin(async ({ $config }) => { if (db.host) { baseURL = db.host } - if (db.KV) { - headers['surreal-KV'] = db.KV - } if (db.NS) { headers['surreal-NS'] = db.NS } diff --git a/src/runtime/server/utils/surreal-fetch.ts b/src/runtime/server/utils/surreal-fetch.ts index d5155cd..4630dcf 100644 --- a/src/runtime/server/utils/surreal-fetch.ts +++ b/src/runtime/server/utils/surreal-fetch.ts @@ -81,11 +81,6 @@ export function useSurrealFetch< onRequest({ options }) { options.headers = options.headers || {} - // @ts-expect-error KV header type missing - if (defaultDB.KV && options.headers['surreal-KV'] === undefined) { - // @ts-expect-error KV header type missing - options.headers['surreal-KV'] = defaultDB.KV - } // @ts-expect-error NS header type missing if (defaultDB.NS && options.headers['surreal-NS'] === undefined) { // @ts-expect-error NS header type missing @@ -153,9 +148,6 @@ export function useSurrealFetchOptionsOverride< if (db.host) { baseURL = db.host } - if (db.KV) { - headers['surreal-KV'] = db.KV - } if (db.NS) { headers['surreal-NS'] = db.NS } diff --git a/src/runtime/types/index.d.ts b/src/runtime/types/index.d.ts index de4bbe4..a1d0d69 100644 --- a/src/runtime/types/index.d.ts +++ b/src/runtime/types/index.d.ts @@ -29,7 +29,6 @@ export interface ServerOverrides { export interface DatabasePreset { host?: string ws?: string - KV?: string NS?: string DB?: string SC?: string