My upload.js file contains the following code:
module.exports = { up: function () { const storage = require(\'@google-cloud/storage\');
const { Storage } = require('@google-cloud/storage'); const up = () => { const gcs = new Storage({ projectId: 'xxxxxxxxx', keyFilename: './service-account.json' }); const bucket = gcs.bucket('xxxxxxxxxx'); bucket.upload('./test-rev.mkv', function (err, file) { if (err) throw new Error(err); }); }