#Can't figure out connecting to the GCS.

1 messages · Page 1 of 1 (latest)

smoky breach
#

I most definately need help here. I am trying to use the new "@payloadcms/storage-gcs" and I am bit confused with the setup. I do everything as per the books but I am still getting errors.
Here is my configs

plugins: [
gcsStorage({
collections: {
["media"]: true,
},
bucket: process.env.GCS_BUCKET || "",
options: {
projectId: config.project_id,
credentials: {
type: config.type,
project_id: config.project_id,
private_key: config.private_key,
private_key_id: config.private_key_id,
},
},
acl: "Public",
}),
],

Am I missing something.

I am getting the error (screenshot)

toxic basalt
#

Can you confirm you're on the latest beta of all payload packages?

#

I believe this error comes from a different payload package that thas since been fixed

#

Also confirm that the slug you're referencing in the plugin is a valid collection slug

smoky breach
#

I have updated the package as someone from the community was havng problem on the packages above .40

#

But you are right, this bug is unrelated to the storage-gcs.