I'm building an app that uses google cloud apis (e.g. Google Cloud Storage). In order to authenticate the app with the api I need to pass the path of the keyfile.json file that contains auth credentials to the GCloud Api initialization script.
I.e.
const storage = new Storage({
keyFilename: path.join(__dirname, '../../keyfile.json'),
});
I put the keyfile.json into the NestJS src folder but when I build the app, the file is not copied to dist.
What would be recommended way to handle static files copying to dist in NestJS?