One Calendar is a privacy-first calendar web app built with Next.js. It has modern security features, including e2ee, password-protected sharing, and self-destructing share links ๐Ÿ“… calendar.xyehr.cn
5
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #221 from EvanTechDev/feature/fix-auth-page-loading-issue

fix(auth): support Clerk key fallback to prevent auth loading hang

authored by

Evan Huang and committed by
GitHub
4fd2d914 b8a27c96

+6
+4
app/layout.tsx
··· 55 55 }: { 56 56 children: React.ReactNode 57 57 }) { 58 + const clerkPublishableKey = 59 + process.env.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY ?? process.env.CLERK_PUBLISHABLE_KEY 60 + 58 61 return ( 59 62 <html lang="en" suppressHydrationWarning> 60 63 <body 61 64 className={`${GeistSans.className} ${instrumentSans.variable} ${instrumentSerif.variable} ${jetbrainsMono.variable} antialiased`} 62 65 > 63 66 <ClerkProvider 67 + publishableKey={clerkPublishableKey} 64 68 localization={enUS} 65 69 fallbackRedirectUrl="/" 66 70 forceRedirectUrl="/"
+2
proxy.ts
··· 1 1 import { clerkMiddleware } from "@clerk/nextjs/server" 2 2 3 3 export default clerkMiddleware({ 4 + publishableKey: process.env.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY ?? process.env.CLERK_PUBLISHABLE_KEY, 5 + secretKey: process.env.CLERK_SECRET_KEY, 4 6 publicRoutes: [ 5 7 "/", 6 8 "/app",