Skip to content

Commit e39dcbe

Browse files
author
root
committed
fix: stabilize web build
1 parent 5660a9b commit e39dcbe

6 files changed

Lines changed: 11 additions & 8 deletions

File tree

apps/web/app/api/auth/logout/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { authCookies } from '../../../../src/lib/authCookies';
44
import { getBackendBaseUrl } from '../../../../src/lib/env';
55

66
export async function POST() {
7-
const cookieStore = cookies();
7+
const cookieStore = await cookies();
88
const refreshToken = cookieStore.get(authCookies.refreshToken)?.value;
99

1010
if (refreshToken) {

apps/web/src/components/groups/CreateExpenseModal.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
import { useEffect, useMemo, useState } from 'react';
44
import { AnimatePresence, motion } from 'framer-motion';
5-
import { GroupMemberSummaryDto } from '@fairshare/shared-types';
5+
import { CurrencyCode, GroupMemberSummaryDto } from '@fairshare/shared-types';
66
import { X, Sparkles } from 'lucide-react';
77
import { createExpenseAction } from '../../lib/actions';
88
import { SplitType, equalShares, exactShares, percentageShares, sumShares } from '../../lib/split';
99
import { useToast } from '../ui/Toaster';
1010

1111
type CreateExpenseModalProps = {
1212
groupId: string;
13-
currency: string;
13+
currency: CurrencyCode;
1414
members: GroupMemberSummaryDto[];
1515
open: boolean;
1616
onClose: () => void;

apps/web/src/components/groups/GroupActions.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import { useState } from 'react';
44
import { useRouter } from 'next/navigation';
5-
import { GroupMemberSummaryDto } from '@fairshare/shared-types';
5+
import { CurrencyCode, GroupMemberSummaryDto } from '@fairshare/shared-types';
66
import { PlusCircle } from 'lucide-react';
77
import dynamic from 'next/dynamic';
88

@@ -13,7 +13,7 @@ const CreateExpenseModal = dynamic(
1313

1414
type GroupActionsProps = {
1515
groupId: string;
16-
currency: string;
16+
currency: CurrencyCode;
1717
members: GroupMemberSummaryDto[];
1818
};
1919

apps/web/src/components/realtime/RealtimeProvider.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function getRealtimeOrigin(): string {
1111
const url = new URL(base);
1212
return `${url.protocol}//${url.host}`;
1313
} catch {
14-
return base.replace(/\\/api\\/v1.*$/, '');
14+
return base.replace(/\/api\/v1.*$/, '');
1515
}
1616
}
1717

@@ -68,7 +68,7 @@ export function RealtimeProvider({ children }: { children: React.ReactNode }) {
6868
const socket = socketRef.current;
6969
if (!socket) return;
7070

71-
const match = pathname.match(/\\/dashboard\\/groups\\/([^/]+)/);
71+
const match = pathname.match(/\/dashboard\/groups\/([^/]+)/);
7272
const groupId = match ? match[1] : null;
7373

7474
if (groupId && joinedGroup !== groupId) {

apps/web/tsconfig.tsbuildinfo

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

pnpm-lock.yaml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)