Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

422 B
Raw Blame
'use client'

import dynamic from 'next/dynamic'

const Agentation =
  process.env.NODE_ENV === 'development'
    ? dynamic(() => import('agentation').then((module) => module.Agentation), { ssr: false })
    : null

const IS_AGENTATION_ENABLED = process.env.NEXT_PUBLIC_ENABLE_AGENTATION !== 'false'

export function AgentationLoader() {
  if (!Agentation || !IS_AGENTATION_ENABLED) return null

  return <Agentation />
}