diff --git a/search/IndexSanityContent/index.ts b/search/IndexSanityContent/index.ts index f1af79085..18402800f 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 DotenvAzure from 'dotenv-azure' +import { dotenv } from 'dotenv-azure' import { indexEvents } from './events' import { indexTopic } from './topic' import { indexNews } from './news' @@ -25,10 +25,11 @@ 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)