Skip to content

Commit

Permalink
fix: Added express require inside getExpressApp (#958)
Browse files Browse the repository at this point in the history
Co-authored-by: Kawika Bader <[email protected]>
  • Loading branch information
kbader-godaddy and kawikabader authored Nov 8, 2024
1 parent 316e888 commit 1cfa6cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gasket-plugin-express/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
const { name, version, description } = require('../package.json');
const create = require('./create');
const createServers = require('./create-servers');
const express = require('express');

// Memoize the Express app instance
let app;
Expand All @@ -16,6 +15,7 @@ const plugin = {
description,
actions: {
getExpressApp(gasket) {
const express = require('express');
const { http2 } = gasket.config;
app ??= http2 ? require('http2-express-bridge')(express) : express();

Expand Down

0 comments on commit 1cfa6cc

Please sign in to comment.