Skip to content

Commit

Permalink
replace deprecated onSetupMiddleware proxy confing
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyperkid123 committed Oct 1, 2024
1 parent a8b289a commit 7127bbd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/config-utils/src/proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ const proxy = ({
console.log('\u001b[0m');
}
},
onBeforeSetupMiddleware({ app, compiler, options }) {
setupMiddlewares(middlewares, { app, compiler, options }) {
app?.enable('strict routing'); // trailing slashes are mean

if (shouldBounceProdRequests) {
Expand Down Expand Up @@ -411,6 +411,8 @@ const proxy = ({
config: standaloneConfig,
})
);

return middlewares;
},
};

Expand Down

0 comments on commit 7127bbd

Please sign in to comment.