npm install --save 1kemalozturk/fastify-gcs
Import "fastify-gcs" and register it into Fastify instance
fastify.register(require('@1kemalozturk/fastify-gcs'), {
projectId: '', // [string, required] GCP project id
keyFilename: '' // [string, optional] path to service account json file
})
you can access the Cloud Storage client via:
const cloudStorage = fastify.googleCloudStorage