mirror of
https://github.com/Sosokker/B2D-Ventures.git
synced 2025-12-18 13:34:06 +01:00
refactor: import module and log error of serverComponentClient
This commit is contained in:
parent
247d27721f
commit
d85803107d
@ -3,3 +3,4 @@ src/components/ui/*
|
||||
src/types/database.types.ts
|
||||
src/components/BusinessForm.tsx
|
||||
src/components/ProjectForm.tsx
|
||||
src/app/project/apply/page.tsx
|
||||
@ -1,5 +1,6 @@
|
||||
"use client";
|
||||
|
||||
import React from "react";
|
||||
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
|
||||
import { useState } from "react";
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import { createServerClient, type CookieOptions } from "@supabase/ssr";
|
||||
import { createServerClient } from "@supabase/ssr";
|
||||
import { cookies } from "next/headers";
|
||||
|
||||
export function createSupabaseClient() {
|
||||
@ -12,7 +12,9 @@ export function createSupabaseClient() {
|
||||
setAll(cookiesToSet) {
|
||||
try {
|
||||
cookiesToSet.forEach(({ name, value, options }) => cookieStore.set(name, value, options));
|
||||
} catch {}
|
||||
} catch (error) {
|
||||
console.error("Error setting cookies:", error);
|
||||
}
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user