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.

1.1 KB
Raw Blame
/**
 * Public server surface for the standalone Marketplace host (dify-marketplace).
 * Import this module instead of treating private Marketplace paths as Knip entries.
 */
import {
  adaptCreatorProfile,
  CREATOR_SORT_FIELDS,
  DEFAULT_CREATOR_SORT_FIELD,
  DEFAULT_CREATOR_SORT_ORDER,
  getStandaloneCreationHref,
  parseCreatorSortField,
  parseCreatorSortOrder,
  sortCreatorCreations,
  toPublisherSortQuery,
} from '../creator-profile/model'
import { HydrateQueryClient } from '../hydration-server'
import Marketplace from '../index'
import { prefetchMarketplaceDehydratedState } from '../prefetch-marketplace-dehydrated-state'
import { SERVER_PREFETCH_BUDGET_MS, withinServerBudget } from '../server-budget'

export const standaloneMarketplaceServer = {
  Marketplace,
  HydrateQueryClient,
  prefetchMarketplaceDehydratedState,
  SERVER_PREFETCH_BUDGET_MS,
  withinServerBudget,
  adaptCreatorProfile,
  CREATOR_SORT_FIELDS,
  DEFAULT_CREATOR_SORT_FIELD,
  DEFAULT_CREATOR_SORT_ORDER,
  getStandaloneCreationHref,
  parseCreatorSortField,
  parseCreatorSortOrder,
  sortCreatorCreations,
  toPublisherSortQuery,
}