From 61c3491a29e80605872d69c281092f67c0f52a21 Mon Sep 17 00:00:00 2001 From: Fredrik Monsen Date: Wed, 16 Oct 2024 10:51:09 +0200 Subject: [PATCH] fix: exclude AuthProvider from StrictMode in local development to prevent auth problems --- next.config.mjs | 1 + src/app/providers.tsx | 9 ++++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/next.config.mjs b/next.config.mjs index 195da2c..4279dc6 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -1,6 +1,7 @@ import {withSentryConfig} from "@sentry/nextjs"; /** @type {import('next').NextConfig} */ const nextConfig = { + reactStrictMode: false, output: "standalone", basePath: process.env.NEXT_PUBLIC_BASE_PATH, experimental: { diff --git a/src/app/providers.tsx b/src/app/providers.tsx index 26220aa..34385e8 100644 --- a/src/app/providers.tsx +++ b/src/app/providers.tsx @@ -2,13 +2,16 @@ import {NextUIProvider} from '@nextui-org/react'; import {AuthProvider} from '@/app/AuthProvider'; +import React from 'react'; export function Providers({children}: { children: React.ReactNode }) { return ( - - {children} - + + + {children} + + ); }