From 1bf94f79a85c7e26f2302d0403f62d09ba2c6565 Mon Sep 17 00:00:00 2001 From: Jan Erik Herrmann Date: Mon, 11 Jul 2016 19:54:44 +0200 Subject: [PATCH] fixed direct access url --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 5caeb78..53658bc 100644 --- a/index.js +++ b/index.js @@ -132,7 +132,7 @@ GCSAdapter.prototype.getFileData = function(filename) { // otherwise we serve the file through parse-server. GCSAdapter.prototype.getFileLocation = function(config, filename) { if (this._directAccess) { - return `https://${this._bucket}.storage.googleapis.com/${this._bucketPrefix + filename}`; + return `https://storage.googleapis.com/${this._bucket}/${this._bucketPrefix + filename}`; } return (config.mount + '/files/' + config.applicationId + '/' + encodeURIComponent(filename)); }