diff --git a/client/src/routes/Root.tsx b/client/src/routes/Root.tsx index e8dce9617e..37b671978c 100644 --- a/client/src/routes/Root.tsx +++ b/client/src/routes/Root.tsx @@ -11,9 +11,9 @@ import { import { useAuthContext, useAssistantsMap, useAgentsMap, useFileMap, useSearch } from '~/hooks'; import TermsAndConditionsModal from '~/components/ui/TermsAndConditionsModal'; import { useUserTermsQuery, useGetStartupConfig } from '~/data-provider'; -import { getTermsMarkdown } from '~/terms/termsContent'; import { Nav, MobileNav } from '~/components/Nav'; import { Banner } from '~/components/Banners'; +import { getTermsMarkdown } from '~/utils'; import { useRecoilValue } from 'recoil'; import store from '~/store'; diff --git a/client/src/utils/index.ts b/client/src/utils/index.ts index 1a295837f4..2c9910bd1e 100644 --- a/client/src/utils/index.ts +++ b/client/src/utils/index.ts @@ -15,6 +15,7 @@ export * from './languages'; export * from './endpoints'; export * from './localStorage'; export * from './promptGroups'; +export * from './termsContent'; export { default as cn } from './cn'; export { default as logger } from './logger'; export { default as buildTree } from './buildTree'; diff --git a/client/src/terms/termsContent.ts b/client/src/utils/termsContent.ts similarity index 89% rename from client/src/terms/termsContent.ts rename to client/src/utils/termsContent.ts index 164d92dd83..b66dc8da9a 100644 --- a/client/src/terms/termsContent.ts +++ b/client/src/utils/termsContent.ts @@ -1,6 +1,6 @@ -import terms_en from './terms_en.md?raw'; -import terms_de from './terms_de.md?raw'; -import terms_fr from './terms_fr.md?raw'; +import terms_en from '../../../terms/terms_en.md?raw'; +import terms_de from '../../../terms/terms_de.md?raw'; +import terms_fr from '../../../terms/terms_fr.md?raw'; /** * A mapping of language codes to their respective terms markdown content. diff --git a/deploy-compose.yml b/deploy-compose.yml index ae61265a05..14bf39f5be 100644 --- a/deploy-compose.yml +++ b/deploy-compose.yml @@ -13,7 +13,7 @@ services: - rag_api restart: always extra_hosts: - - "host.docker.internal:host-gateway" + - "host.docker.internal:host-gateway" env_file: - .env environment: @@ -30,7 +30,7 @@ services: - ./images:/app/client/public/images - ./uploads:/app/uploads - ./logs:/app/api/logs - + - ./terms:/app/terms client: image: nginx:1.27.0-alpine container_name: LibreChat-NGINX diff --git a/docker-compose.yml b/docker-compose.yml index e16f93f4c0..17617ca001 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -27,6 +27,7 @@ services: - ./images:/app/client/public/images - ./uploads:/app/uploads - ./logs:/app/api/logs + - ./terms:/app/terms mongodb: container_name: chat-mongodb image: mongo diff --git a/client/src/terms/terms_de.md b/terms/terms_de.md similarity index 100% rename from client/src/terms/terms_de.md rename to terms/terms_de.md diff --git a/client/src/terms/terms_en.md b/terms/terms_en.md similarity index 100% rename from client/src/terms/terms_en.md rename to terms/terms_en.md diff --git a/client/src/terms/terms_fr.md b/terms/terms_fr.md similarity index 100% rename from client/src/terms/terms_fr.md rename to terms/terms_fr.md