File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
packages/site-server/src/catalog/routes/catalog Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 77import Router from '@koa/router' ;
88import { renderPage } from '../../../templates/base.js' ;
99import { DefaultContext , DefaultState , ParameterizedContext } from 'koa' ;
10+ import { Readable } from 'stream' ;
1011
1112export const handleCatalogRoute = async (
1213 context : ParameterizedContext <
@@ -15,16 +16,16 @@ export const handleCatalogRoute = async (
1516 unknown
1617 >
1718) => {
18- context . body = renderPage ( {
19+ context . body = Readable . from ( renderPage ( {
1920 title : `Web Components Catalog` ,
2021 scripts : [
21- '. /js/catalog.js'
22+ '/js/catalog.js'
2223 ] ,
2324 content : `
2425 <h1>Catalog</h1>
2526 <wco-catalog-search></wco-catalog-search>
2627 ` ,
27- } ) ;
28+ } ) ) ;
2829 context . type = 'html' ;
2930 context . status = 200 ;
3031} ;
You can’t perform that action at this time.
0 commit comments