From 72a28b30b3afdbbdc1b032ac4a58bcf1d593a974 Mon Sep 17 00:00:00 2001 From: Padmaja <52911293+padms@users.noreply.github.com> Date: Thu, 5 Oct 2023 20:51:17 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=20Change=20code=20related=20to?= =?UTF-8?q?=20local=20#1864?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- search/IndexSanityContent/index.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/search/IndexSanityContent/index.ts b/search/IndexSanityContent/index.ts index 18402800f..f1af79085 100644 --- a/search/IndexSanityContent/index.ts +++ b/search/IndexSanityContent/index.ts @@ -1,6 +1,6 @@ import { AzureFunction, Context, HttpRequest } from '@azure/functions' // eslint-disable-next-line import/no-named-as-default -import { dotenv } from 'dotenv-azure' +import DotenvAzure from 'dotenv-azure' import { indexEvents } from './events' import { indexTopic } from './topic' import { indexNews } from './news' @@ -25,11 +25,10 @@ const indexTasks: { } const httpTrigger: AzureFunction = async function (context: Context, req: HttpRequest): Promise { - /* await new DotenvAzure().config({ + await new DotenvAzure().config({ allowEmptyValues: true, debug: false, - })*/ - await dotenv.config() + }) const logger = context.log const language = pipe(languageFromIso(req.body.language), languageOrDefault)