diff --git a/version.txt b/version.txt index d169b2f2d..c5d54ec32 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -0.0.8 +0.0.9 diff --git a/web/src/api/createServerInstance.ts b/web/src/api/createServerInstance.ts index c23e7d470..1487cbc1a 100644 --- a/web/src/api/createServerInstance.ts +++ b/web/src/api/createServerInstance.ts @@ -2,7 +2,7 @@ import { BASE_URL } from './buster_rest/instances'; import type { RequestInit } from 'next/dist/server/web/spec-extension/request'; -import { createClient } from '../context/Supabase/server'; +import { createServerSupabaseClient } from '../context/Supabase/server'; export interface FetchConfig extends RequestInit { baseURL?: string; @@ -10,7 +10,7 @@ export interface FetchConfig extends RequestInit { } export const serverFetch = async (url: string, config: FetchConfig = {}): Promise => { - const supabase = await createClient(); + const supabase = await createServerSupabaseClient(); const sessionData = await supabase.auth.getSession(); const accessToken = sessionData.data?.session?.access_token;