diff --git a/controller/bucket.ts b/controller/bucket.ts new file mode 100644 index 0000000..3e2c1f4 --- /dev/null +++ b/controller/bucket.ts @@ -0,0 +1,5 @@ +import {Storage} from "@google-cloud/storage"; + +export const storage = new Storage({keyFilename: process.cwd() + "/gbucket.json"}); + +export const bucket = storage.bucket(process.env.GCLOUD_STORAGE_BUCKET || 'sheepstar-cdn'); \ No newline at end of file