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
@ -2,4 +2,5 @@ src/app/(investment)/deals/[id]/followShareButton.tsx
|
|||||||
src/components/ui/*
|
src/components/ui/*
|
||||||
src/types/database.types.ts
|
src/types/database.types.ts
|
||||||
src/components/BusinessForm.tsx
|
src/components/BusinessForm.tsx
|
||||||
src/components/ProjectForm.tsx
|
src/components/ProjectForm.tsx
|
||||||
|
src/app/project/apply/page.tsx
|
||||||
@ -1,5 +1,6 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
|
import React from "react";
|
||||||
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
|
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
|
||||||
import { useState } from "react";
|
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";
|
import { cookies } from "next/headers";
|
||||||
|
|
||||||
export function createSupabaseClient() {
|
export function createSupabaseClient() {
|
||||||
@ -12,7 +12,9 @@ export function createSupabaseClient() {
|
|||||||
setAll(cookiesToSet) {
|
setAll(cookiesToSet) {
|
||||||
try {
|
try {
|
||||||
cookiesToSet.forEach(({ name, value, options }) => cookieStore.set(name, value, options));
|
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