File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import express = require('express');
7
7
import httpProxy = require( 'http-proxy' ) ;
8
8
9
9
const URL = 'https://storage.googleapis.com' ;
10
+ const BUCKET = `${ process . env . GOOGLE_CLOUD_PROJECT } .appspot.com` ;
10
11
const datastore = new Datastore ( ) ;
11
12
const auth = new GoogleAuth ( {
12
13
scopes : 'https://www.googleapis.com/auth/devstorage.read_only' ,
@@ -101,7 +102,7 @@ export function createApp(siteId: string, branchOrRef: string) {
101
102
102
103
const manifestPaths = manifest . paths ;
103
104
const blobKey = manifestPaths [ blobPath ] ;
104
- const updatedUrl = `/${ process . env . GOOGLE_CLOUD_PROJECT } .appspot.com /fileset/sites/${ requestSiteId } /blobs/${ blobKey } ` ;
105
+ const updatedUrl = `/${ BUCKET } /fileset/sites/${ requestSiteId } /blobs/${ blobKey } ` ;
105
106
106
107
// TODO: Add custom 404 support based on site config.
107
108
if ( ! blobKey ) {
You can’t perform that action at this time.
0 commit comments