Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/cds-plugin-ui5/cds-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ if (!skip) {
// move our middleware before the CDS index serve middleware to
// allow that we can intercept the response and modify it to
// inject our application pages an remove the exitsing ones
const middlewareStack = app?._router?.stack;
const middlewareStack = (app?._router ?? app?.router)?.stack;
if (Array.isArray(middlewareStack)) {
const cmw = middlewareStack.pop();
const idxOfServeStatic = middlewareStack.findIndex((layer) => layer.name === "serveStatic");
Expand Down
Loading