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 7
7
import Router from '@koa/router' ;
8
8
import { renderPage } from '../../../templates/base.js' ;
9
9
import { DefaultContext , DefaultState , ParameterizedContext } from 'koa' ;
10
+ import { Readable } from 'stream' ;
10
11
11
12
export const handleCatalogRoute = async (
12
13
context : ParameterizedContext <
@@ -15,16 +16,16 @@ export const handleCatalogRoute = async (
15
16
unknown
16
17
>
17
18
) => {
18
- context . body = renderPage ( {
19
+ context . body = Readable . from ( renderPage ( {
19
20
title : `Web Components Catalog` ,
20
21
scripts : [
21
- '. /js/catalog.js'
22
+ '/js/catalog.js'
22
23
] ,
23
24
content : `
24
25
<h1>Catalog</h1>
25
26
<wco-catalog-search></wco-catalog-search>
26
27
` ,
27
- } ) ;
28
+ } ) ) ;
28
29
context . type = 'html' ;
29
30
context . status = 200 ;
30
31
} ;
You can’t perform that action at this time.
0 commit comments