File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ export function createApp(siteId: string, branchOrRef: string) {
81
81
}
82
82
83
83
const manifest = await getManifest ( requestSiteId , requestBranchOrRef ) ;
84
- if ( ! manifest ) {
84
+ if ( ! manifest || ! manifest . paths ) {
85
85
res
86
86
. status ( 404 )
87
87
. sendFile (
@@ -91,16 +91,8 @@ export function createApp(siteId: string, branchOrRef: string) {
91
91
}
92
92
93
93
const manifestPaths = manifest . paths ;
94
- if ( ! manifestPaths ) {
95
- res
96
- . status ( 404 )
97
- . sendFile (
98
- fsPath . join ( __dirname , './static/' , 'fileset-does-not-exist.html' )
99
- ) ;
100
- return ;
101
- }
102
94
const blobKey = manifestPaths [ blobPath ] ;
103
- const updatedUrl = `/wing-prod .appspot.com/fileset/sites/${ requestSiteId } /blobs/${ blobKey } ` ;
95
+ const updatedUrl = `/${ process . env . GCLOUD_PROJECT } .appspot.com/fileset/sites/${ requestSiteId } /blobs/${ blobKey } ` ;
104
96
105
97
// TODO: Add custom 404 support based on site config.
106
98
if ( ! blobKey ) {
You can’t perform that action at this time.
0 commit comments