Skip to content

Commit

Permalink
fix: exclude AuthProvider from StrictMode in local development to pre…
Browse files Browse the repository at this point in the history
…vent auth problems
  • Loading branch information
fredrikmonsen committed Oct 16, 2024
1 parent 7f0f60e commit 61c3491
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -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: {
Expand Down
9 changes: 6 additions & 3 deletions src/app/providers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<AuthProvider>
<NextUIProvider locale='nb-NO'>
{children}
</NextUIProvider>
<React.StrictMode>
<NextUIProvider locale='nb-NO'>
{children}
</NextUIProvider>
</React.StrictMode>
</AuthProvider>
);
}

0 comments on commit 61c3491

Please sign in to comment.