From ad3d0015974cb529fc3fa8aeb9a39d549975f4a3 Mon Sep 17 00:00:00 2001 From: anteqkois Date: Sun, 5 May 2024 12:45:05 +0200 Subject: [PATCH] ci(next): fix useSerachParams issue --- apps/web/app/(auth)/login/LoginForm.tsx | 2 -- apps/web/next.config.js | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/web/app/(auth)/login/LoginForm.tsx b/apps/web/app/(auth)/login/LoginForm.tsx index f51d378b..14a89cda 100644 --- a/apps/web/app/(auth)/login/LoginForm.tsx +++ b/apps/web/app/(auth)/login/LoginForm.tsx @@ -7,7 +7,6 @@ import * as z from 'zod' import { ButtonClient, Input, Label } from '@linkerry/ui-components/client' import { cn } from '@linkerry/ui-components/utils' -import { useSearchParams } from 'next/navigation' import { useUser } from '../../../modules/user/useUser' import { retriveServerHttpException } from '../../../shared/utils' import { userAuthSchema } from '../validations' @@ -28,7 +27,6 @@ export function LoginForm({ className, ...props }: UserAuthFormProps) { }) const [isLoading, setIsLoading] = React.useState(false) // const [isGitHubLoading, setIsGitHubLoading] = React.useState(false) - const searchParams = useSearchParams() async function onSubmit(data: FormData) { setIsLoading(true) diff --git a/apps/web/next.config.js b/apps/web/next.config.js index 889740ef..d8fcdc70 100644 --- a/apps/web/next.config.js +++ b/apps/web/next.config.js @@ -34,6 +34,9 @@ const nextConfig = { ], }, output: "standalone", + experimental: { + missingSuspenseWithCSRBailout: false, + }, }; const plugins = [