From e33d874bcea5d58987bc18d85669cfdb16b07077 Mon Sep 17 00:00:00 2001 From: nael Date: Thu, 19 Sep 2024 01:40:33 +0200 Subject: [PATCH] :memo: Updated docs --- apps/magic-link/Dockerfile | 2 + apps/magic-link/Dockerfile.dev | 2 + apps/magic-link/src/helpers/config.ts | 1 + apps/magic-link/src/lib/ProviderModal.tsx | 6 ++- .../app/(Dashboard)/configuration/page.tsx | 2 +- .../hooks/create/useCreatePullFrequency.tsx | 2 +- .../src/hooks/get/useGetPullFrequencies.tsx | 4 +- docker-compose.dev.yml | 1 + docker-compose.source.yml | 1 + docker-compose.yml | 2 +- docs/api-reference/authentication.mdx | 2 +- docs/backend-sdk/python.mdx | 2 +- docs/backend-sdk/typescript.mdx | 2 +- docs/core-concepts/auth.mdx | 4 +- docs/core-concepts/custom-fields.mdx | 2 +- docs/core-concepts/magic-links.mdx | 6 +-- docs/core-concepts/sync-strategies.mdx | 24 +++++++++- docs/quick-start.mdx | 22 ++++++--- docs/rag/index.mdx | 11 ++++- docs/recipes/add-custom-provider-creds.mdx | 2 +- docs/recipes/catch-connection-token.mdx | 10 ++-- docs/recipes/embed-catalog.mdx | 2 +- docs/recipes/import-existing-users.mdx | 12 ++--- docs/webhooks/overview.mdx | 10 ++-- .../linked-users/linked-users.controller.ts | 26 +++++------ .../api/src/@core/sync/sync.controller.ts | 8 ++-- packages/api/swagger/swagger-spec.yaml | 46 +++++++++---------- 27 files changed, 133 insertions(+), 81 deletions(-) diff --git a/apps/magic-link/Dockerfile b/apps/magic-link/Dockerfile index 8e9a8cad1..f6701c5cb 100644 --- a/apps/magic-link/Dockerfile +++ b/apps/magic-link/Dockerfile @@ -27,8 +27,10 @@ ENV PNPM_HOME="/pnpm" ENV PATH="$PNPM_HOME:$PATH" ARG VITE_BACKEND_DOMAIN +ARG VITE_WEBAPP_DOMAIN ENV VITE_BACKEND_DOMAIN="$VITE_BACKEND_DOMAIN" +ENV VITE_WEBAPP_DOMAIN="$VITE_WEBAPP_DOMAIN" RUN corepack enable diff --git a/apps/magic-link/Dockerfile.dev b/apps/magic-link/Dockerfile.dev index 26cdf0048..d75210253 100644 --- a/apps/magic-link/Dockerfile.dev +++ b/apps/magic-link/Dockerfile.dev @@ -11,8 +11,10 @@ ENV PNPM_HOME="/pnpm" ENV PATH="$PNPM_HOME:$PATH" ARG VITE_BACKEND_DOMAIN +ARG VITE_WEBAPP_DOMAIN ENV VITE_BACKEND_DOMAIN="$VITE_BACKEND_DOMAIN" +ENV VITE_WEBAPP_DOMAIN="$VITE_WEBAPP_DOMAIN" RUN corepack enable diff --git a/apps/magic-link/src/helpers/config.ts b/apps/magic-link/src/helpers/config.ts index 32cb9c4cc..e4ec62a3f 100644 --- a/apps/magic-link/src/helpers/config.ts +++ b/apps/magic-link/src/helpers/config.ts @@ -1,5 +1,6 @@ const config = { API_URL: import.meta.env.VITE_BACKEND_DOMAIN, + WEBAPP_URL: import.meta.env.VITE_WEBAPP_DOMAIN }; export default config; diff --git a/apps/magic-link/src/lib/ProviderModal.tsx b/apps/magic-link/src/lib/ProviderModal.tsx index ed94c384b..54d03011b 100644 --- a/apps/magic-link/src/lib/ProviderModal.tsx +++ b/apps/magic-link/src/lib/ProviderModal.tsx @@ -7,6 +7,7 @@ import { import { Input } from "@/components/ui/input"; import { LoadingSpinner } from '@/components/ui/loading-spinner'; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@/components/ui/select'; +import config from '@/helpers/config'; import useCreateApiKeyConnection from '@/hooks/queries/useCreateApiKeyConnection'; import useProjectConnectors from '@/hooks/queries/useProjectConnectors'; import useUniqueMagicLink from '@/hooks/queries/useUniqueMagicLink'; @@ -419,7 +420,10 @@ const ProviderModal = () => { You've successfully connected your account!