Fix TypeScript strict errors for production build

This commit is contained in:
Ryan Salazar
2026-06-26 17:46:23 -04:00
parent 2bd3c31660
commit c6238c3bcf
2 changed files with 14 additions and 2 deletions

View File

@@ -12,7 +12,13 @@ export async function updateSession(request: NextRequest) {
getAll() {
return request.cookies.getAll();
},
setAll(cookiesToSet) {
setAll(
cookiesToSet: {
name: string;
value: string;
options?: Parameters<typeof supabaseResponse.cookies.set>[2];
}[]
) {
cookiesToSet.forEach(({ name, value }) =>
request.cookies.set(name, value)
);

View File

@@ -12,7 +12,13 @@ export async function createClient() {
getAll() {
return cookieStore.getAll();
},
setAll(cookiesToSet) {
setAll(
cookiesToSet: {
name: string;
value: string;
options?: Parameters<typeof cookieStore.set>[2];
}[]
) {
try {
cookiesToSet.forEach(({ name, value, options }) =>
cookieStore.set(name, value, options)