Skip to content

Commit

Permalink
chore: fix express type
Browse files Browse the repository at this point in the history
  • Loading branch information
victoray committed Aug 1, 2024
1 parent bfdfe12 commit 83a5828
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/runtime-handler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"@types/cookie-parser": "^1.4.2",
"@types/debug": "^4.1.4",
"@types/express-useragent": "^0.2.21",
"@types/express-serve-static-core": "4.17.33",
"@types/jest": "^26.0.24",
"@types/lodash.debounce": "^4.0.6",
"@types/node": "^18.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/runtime-handler/src/dev-runtime/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export class LocalDevelopmentServer extends EventEmitter {
: undefined;
log('Legacy mode enabled');
app.use('/assets/*', (req, res, next) => {
req.url = req.url.replace('/assets/', '/');
req.path = req.path.replace('/assets/', '/');
next();
});
}
Expand Down

0 comments on commit 83a5828

Please sign in to comment.