Created the bucket controller to control the google storage bucket
This commit is contained in:
parent
2fb459ff1c
commit
c057909643
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');
|
Loading…
x
Reference in New Issue
Block a user