Skip to content

Commit c2dbaaa

Browse files
authored
fix(generators): Conditionally import channels in Express app (#3106)
1 parent 625cabf commit c2dbaaa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ ${schema !== false ? `import { configurationValidator } from './configuration'`
8181
import { logger } from './logger'
8282
import { logError } from './hooks/log-error'
8383
import { services } from './services/index'
84-
import { channels } from './channels'
84+
${transports.includes('websockets') ? `import { channels } from './channels'` : ''}
8585
8686
const app: Application = express(feathers())
8787

0 commit comments

Comments
 (0)