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.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
chore(layout): reintroduce AmplitudeProvider in common layouts for analytics tracking (#36208)
Coding On Starb41338cd0827
diff --git a/web/app/(commonLayout)/layout.tsx b/web/app/(commonLayout)/layout.tsxindex 699d2a4348c..2467f35b7bc 100644--- a/web/app/(commonLayout)/layout.tsx+++ b/web/app/(commonLayout)/layout.tsx@@ -2,6 +2,7 @@ import type { ReactNode } from 'react'import * as React from 'react'import { AppInitializer } from '@/app/components/app-initializer'import InSiteMessageNotification from '@/app/components/app/in-site-message/notification'+import AmplitudeProvider from '@/app/components/base/amplitude'import GA, { GaType } from '@/app/components/base/ga'import Zendesk from '@/app/components/base/zendesk'import { GotoAnything } from '@/app/components/goto-anything'@@ -19,6 +20,7 @@ const Layout = ({ children }: { children: ReactNode }) => {return (<><GA gaType={GaType.admin} />+ <AmplitudeProvider /><AppInitializer><AppContextProvider><EventEmitterContextProvider>diff --git a/web/app/account/(commonLayout)/layout.tsx b/web/app/account/(commonLayout)/layout.tsxindex f116cd00f9e..8fdbd8a238c 100644--- a/web/app/account/(commonLayout)/layout.tsx+++ b/web/app/account/(commonLayout)/layout.tsx@@ -1,6 +1,7 @@import type { ReactNode } from 'react'import * as React from 'react'import { AppInitializer } from '@/app/components/app-initializer'+import AmplitudeProvider from '@/app/components/base/amplitude'import GA, { GaType } from '@/app/components/base/ga'import HeaderWrapper from '@/app/components/header/header-wrapper'import { AppContextProvider } from '@/context/app-context-provider'@@ -13,6 +14,7 @@ const Layout = ({ children }: { children: ReactNode }) => {return (<><GA gaType={GaType.admin} />+ <AmplitudeProvider /><AppInitializer><AppContextProvider><EventEmitterContextProvider>diff --git a/web/app/layout.tsx b/web/app/layout.tsxindex 8bb2069aaf9..4eb392fb6d3 100644--- a/web/app/layout.tsx+++ b/web/app/layout.tsx@@ -4,7 +4,6 @@ import { TooltipProvider } from '@langgenius/dify-ui/tooltip'import { Provider as JotaiProvider } from 'jotai/react'import { ThemeProvider } from 'next-themes'import { NuqsAdapter } from 'nuqs/adapters/next/app'-import AmplitudeProvider from '@/app/components/base/amplitude'import { IS_PROD } from '@/config'import { TanstackQueryInitializer } from '@/context/query-client'import { getDatasetMap } from '@/env'@@ -60,7 +59,6 @@ const LocaleLayout = async ({{...datasetMap}><div className="isolate h-full">- <AmplitudeProvider /><JotaiProvider><ThemeProviderattribute="data-theme"