Skip to content

Commit f4d0352

Browse files
Merge pull request #1418 from opencomponents/open-preview
Leave preview open without discovery
2 parents 6552828 + d0fa379 commit f4d0352

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/registry/routes/component-preview.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function componentPreview(
2828
const isHtmlRequest =
2929
!!req.headers.accept && req.headers.accept.indexOf('text/html') >= 0;
3030

31-
if (isHtmlRequest && !!res.conf.discovery) {
31+
if (isHtmlRequest) {
3232
res.send(
3333
previewView({
3434
component,

0 commit comments

Comments
 (0)