aboutsummaryrefslogtreecommitdiff
path: root/src/hooks.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/hooks.ts')
-rw-r--r--src/hooks.ts6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/hooks.ts b/src/hooks.ts
index 151e572..f9df388 100644
--- a/src/hooks.ts
+++ b/src/hooks.ts
@@ -1,6 +1,5 @@
import cookie from 'cookie'
import type { ExternalFetch, GetSession, Handle } from '@sveltejs/kit'
-import { SKYBLOCK_STATS_API_KEY } from './env'
export const handle: Handle = async ({ event, resolve }) => {
@@ -20,11 +19,6 @@ export const getSession: GetSession = async ({ locals }) => {
}
export const externalFetch: ExternalFetch = async (request) => {
- if (SKYBLOCK_STATS_API_KEY && request.url.startsWith('https://skyblock-api.matdoes.dev/')) {
- // add the key as a header
- request.headers.set('key', SKYBLOCK_STATS_API_KEY)
- }
-
const response = await fetch(request)
return response