Skip to content

Commit 9ebf9e2

Browse files
committed
Enable SSR on /catalog
1 parent a644796 commit 9ebf9e2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/site-server/src/catalog/routes/catalog/catalog-route.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7+
// This must be imported before lit
8+
import {render} from '@lit-labs/ssr/lib/render-with-global-dom-shim.js';
9+
710
import {DefaultContext, DefaultState, ParameterizedContext} from 'koa';
811
import {html} from 'lit';
912
import {Readable} from 'stream';
1013
import Router from '@koa/router';
11-
import {render} from '@lit-labs/ssr/lib/render-with-global-dom-shim.js';
1214

1315
import '@webcomponents/internal-site-client/lib/entrypoints/catalog.js';
1416
import {renderPage} from '../../../templates/base.js';

0 commit comments

Comments
 (0)