Skip to content

Commit

Permalink
Revert "handle errors on dyamic import of middleware"
Browse files Browse the repository at this point in the history
This reverts commit bc26e5b.
  • Loading branch information
Neville Mehta authored and Neville Mehta committed Jul 19, 2024
1 parent bc26e5b commit 2e50428
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/integrations/node/src/standalone.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,7 @@ export default async function standalone(app: NodeApp, options: Options) {

// also used by server entrypoint
export async function createStandaloneHandler(app: NodeApp, options: Options) {
let importMiddleware = null;
try {
importMiddleware = options.middleware ? await import(options.middleware) : null;
} catch (err) {}
const importMiddleware = options.middleware ? await import(options.middleware) : null;
const appHandler = createAppHandler(app);
const staticHandler = createStaticHandler(app, options);
return (req: http.IncomingMessage, res: http.ServerResponse) => {
Expand Down

0 comments on commit 2e50428

Please sign in to comment.