This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use client'; | |
import { ReactNode } from 'react'; | |
import { SessionProvider } from 'next-auth/react'; | |
export default function Providers({ children }: { children: ReactNode }) { | |
return <SessionProvider>{children}</SessionProvider>; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { ReactNode } from 'react'; | |
import { Inter } from 'next/font/google'; | |
import { notFound } from 'next/navigation'; | |
import Providers from '@/app/providers'; | |
import Navbar from '@/components/Navbar'; | |
import { locales } from '@/navigation'; | |
const inter = Inter({ subsets: ['latin'] }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import NextAuth from 'next-auth/next'; | |
import GoogleProvider from 'next-auth/providers/google'; | |
const useSecureCookies = !!process.env.VERCEL_URL; | |
const handler = NextAuth({ | |
providers: [ | |
GoogleProvider({ | |
clientId: process.env.GOOGLE_CLIENT_ID ?? '', | |
clientSecret: process.env.GOOGLE_CLIENT_SECRET ?? '', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node -e "console.log(require('crypto').randomBytes(32).toString('hex'))" | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { ReactNode } from 'react'; | |
import './globals.css'; | |
export default function RootLayout({ children }: { children: ReactNode }) { | |
return children; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { ReactNode } from 'react'; | |
import { Inter } from 'next/font/google'; | |
import { notFound } from 'next/navigation'; | |
import Providers from '@/app/providers'; | |
import Navbar from '@/components/Navbar'; | |
import { locales } from '@/navigation'; | |
const inter = Inter({ subsets: ['latin'] }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import createMiddleware from 'next-intl/middleware'; | |
import { locales } from './navigation'; | |
export default createMiddleware({ | |
locales, | |
defaultLocale: 'en', | |
localePrefix: 'never', | |
localeDetection: false, | |
domains: [ |
NewerOlder