Skip to content

Commit

Permalink
get allPermalinks.json working with prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
nickreese committed May 18, 2022
1 parent 0902435 commit 225a826
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@elderjs/elderjs",
"version": "1.7.2",
"version": "1.7.3",
"main": "./build/index.js",
"types": "./build/index.d.ts",
"engineStrict": true,
Expand Down
2 changes: 1 addition & 1 deletion src/routes/prepareRouter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const getSpecialRequest = ({ req, server, serverLookupObject }: IGetSpeci

if (server.allRequestsRoute) {
const dataSuffix = typeof server.allRequestsRoute === 'string' ? server.allRequestsRoute : '/allRequests.json';
if (req.path === dataSuffix) {
if (req.path === (server.prefix ? `${server.prefix}${dataSuffix}` : dataSuffix)) {
// just needs any request.
const k1 = Object.keys(serverLookupObject)[0];
request = serverLookupObject[k1];
Expand Down

0 comments on commit 225a826

Please sign in to comment.