You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gcgj-dify-1.7.0/web/app/dev-only/layout.tsx

10 lines
235 B
TypeScript

import type React from 'react'
import { notFound } from 'next/navigation'
export default async function Layout({ children }: React.PropsWithChildren) {
if (process.env.NODE_ENV !== 'development')
notFound()
return children
}