The @payloadcms/plugin-cloud-storage
allows you to upload files from Payload collections to a Google Cloud Storage bucket.
It relies on Node APIs that are not available in the browser.
The payload.config.ts is used by both the server of Payload and the frontend for the webpack build.
The GCS adapter for this plugin relies on the @google-cloud/storage
which calls the Node APIs for processing and uploading files.
When you add this plugin to your payload.config.ts, and a collection uses a gcpAdapter, it will automatically extend your webpack config with the following (see: https://github.com/payloadcms/plugin-cloud-storage/blob/master/src/adapters/gcs/webpack.ts):