Skip to content

Commit

Permalink
πŸ› Change code related to local #1864
Browse files Browse the repository at this point in the history
  • Loading branch information
padms committed Oct 5, 2023
1 parent 46fa8a5 commit 72a28b3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions search/IndexSanityContent/index.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -25,11 +25,10 @@ const indexTasks: {
}

const httpTrigger: AzureFunction = async function (context: Context, req: HttpRequest): Promise<void> {
/* 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)
Expand Down

0 comments on commit 72a28b3

Please sign in to comment.