Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: exclude AuthProvider from StrictMode in local development to prevent auth problems #57

Merged
merged 1 commit into from
Oct 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>
);
}