Created the bucket controller to control the google storage bucket
This commit is contained in:
5
controller/bucket.ts
Normal file
5
controller/bucket.ts
Normal file
@@ -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');
|
Reference in New Issue
Block a user