mirror of
https://github.com/codeflash-ai/codeflash-internal.git
synced 2026-05-04 18:25:18 +00:00
## Summary - Reverts lazy JWT_SECRET initialization — keeps eager fail-fast at module load - Adds `JWT_SECRET` secret to both `deploy_cfwebapp_to_azure.yml` and `nextjs-build.yaml` CI workflows so `next build` page data collection succeeds for the `/codeflash/auth/oauth/token` route ## Context The deploy workflow ([run #24425211765](https://github.com/codeflash-ai/codeflash-internal/actions/runs/24425211765/job/71357530269)) was failing because `JWT_SECRET` isn't available during CI build, causing an eager throw at module load time. The secret already exists as a GitHub repo secret.
45 lines
1.3 KiB
TypeScript
45 lines
1.3 KiB
TypeScript
"use client"
|
|
|
|
import { GripVertical } from "lucide-react"
|
|
import {
|
|
Group,
|
|
Panel,
|
|
Separator,
|
|
type GroupProps,
|
|
type SeparatorProps,
|
|
} from "react-resizable-panels"
|
|
|
|
import { cn } from "@/lib/utils"
|
|
|
|
const ResizablePanelGroup = ({ className, ...props }: GroupProps) => (
|
|
<Group
|
|
className={cn("flex h-full w-full data-[panel-group-direction=vertical]:flex-col", className)}
|
|
{...props}
|
|
/>
|
|
)
|
|
|
|
const ResizablePanel = Panel
|
|
|
|
const ResizableHandle = ({
|
|
withHandle,
|
|
className,
|
|
...props
|
|
}: SeparatorProps & {
|
|
withHandle?: boolean
|
|
}) => (
|
|
<Separator
|
|
className={cn(
|
|
"relative flex w-px items-center justify-center bg-zinc-200 after:absolute after:inset-y-0 after:-left-1 after:-right-1 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[resize-handle-state=drag]:bg-blue-500 data-[resize-handle-state=hover]:bg-blue-400 dark:bg-zinc-700",
|
|
className,
|
|
)}
|
|
{...props}
|
|
>
|
|
{withHandle && (
|
|
<div className="z-10 flex h-4 w-3 items-center justify-center rounded-sm border border-zinc-200 bg-zinc-100 dark:border-zinc-700 dark:bg-zinc-800">
|
|
<GripVertical className="h-2.5 w-2.5 text-zinc-500" />
|
|
</div>
|
|
)}
|
|
</Separator>
|
|
)
|
|
|
|
export { ResizablePanelGroup, ResizablePanel, ResizableHandle }
|