Skip to content

Commit c619ab2

Browse files
fix(generators): Fix configure channels when not real-time app (#3271)
1 parent 72f48a1 commit c619ab2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/generators/src/app/templates/app.tpl.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ ${
4343
: ''
4444
}
4545
app.configure(services)
46-
app.configure(channels)
46+
${transports.includes('websockets') ? 'app.configure(channels)' : ''}
4747
4848
4949
// Register hooks that run on all service methods
@@ -105,7 +105,7 @@ ${
105105
: ''
106106
}
107107
app.configure(services)
108-
app.configure(channels)
108+
${transports.includes('websockets') ? 'app.configure(channels)' : ''}
109109
110110
// Configure a middleware for 404s and the error handler
111111
app.use(notFound())

0 commit comments

Comments
 (0)