File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ const props = {
1010 template: " splash" ,
1111 editUrl: false ,
1212 feedback: false ,
13+ noindex: true ,
1314 },
1415 hideTitle: true ,
1516 hideBreadcrumbs: true ,
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ const props = {
2727 tableOfContents: false ,
2828 editUrl: false ,
2929 feedback: false ,
30+ noindex: true ,
3031 },
3132 hideTitle: true ,
3233 hideBreadcrumbs: true ,
Original file line number Diff line number Diff line change @@ -105,7 +105,14 @@ export default class extends WorkerEntrypoint<Env> {
105105
106106 if ( ! section ) return response ;
107107
108- return this . env . ASSETS . fetch ( `http://fakehost/${ section } /404/` ) ;
108+ const notFoundResponse = await this . env . ASSETS . fetch (
109+ `http://fakehost/${ section } /404/` ,
110+ ) ;
111+
112+ return new Response ( notFoundResponse . body , {
113+ status : 404 ,
114+ headers : notFoundResponse . headers ,
115+ } ) ;
109116 }
110117
111118 return response ;
You can’t perform that action at this time.
0 commit comments