From d2df3330fafcad6ad22903177b53dd62681830b1 Mon Sep 17 00:00:00 2001 From: sriram veeraghanta Date: Tue, 31 Jan 2023 19:52:03 +0530 Subject: [PATCH] Turbo Repo Env Fixes for Docs App. (#218) * turbo js env update * turbo repo env fixes --- apps/docs/src/components/Search.jsx | 2 +- turbo.json | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/docs/src/components/Search.jsx b/apps/docs/src/components/Search.jsx index 78b345d69..3b63d8a4d 100644 --- a/apps/docs/src/components/Search.jsx +++ b/apps/docs/src/components/Search.jsx @@ -41,7 +41,7 @@ function useAutocomplete() { return item.query }, getItemUrl({ item }) { - let url = new URL(item.url) + const url = new URL(item.url) return `${url.pathname}${url.hash}` }, onSelect({ itemUrl }) { diff --git a/turbo.json b/turbo.json index 7df2292e8..ddc3b9cc5 100644 --- a/turbo.json +++ b/turbo.json @@ -3,7 +3,10 @@ "globalEnv": [ "NEXT_PUBLIC_GITHUB_ID", "NEXT_PUBLIC_GOOGLE_CLIENTID", - "NEXT_PUBLIC_API_BASE_URL" + "NEXT_PUBLIC_API_BASE_URL", + "NEXT_PUBLIC_DOCSEARCH_API_KEY", + "NEXT_PUBLIC_DOCSEARCH_APP_ID", + "NEXT_PUBLIC_DOCSEARCH_INDEX_NAME" ], "pipeline": { "build": {