I am trying to use deepgram in my NextJS project, below is the code and the error i am seeing
const { result, error } = await deepgram.listen.prerecorded.transcribeUrl(
{
url: audioUrl
},
{
model: "nova",
language: 'en',
punctuate: 'true',
smart_format: 'true',
filler_words: 'false',
}
);
Module not found: Can't resolve 'fs'```
I tried to find solutions online, the solution i found was to add below in package.json, but this futher leads to more erros for 'tls' etc and eventually createClient fails
"browser": {
"fs": false,
"os": false,
"path": false
}