Skip to content

Commit 225a826

Browse files
committed
get allPermalinks.json working with prefix
1 parent 0902435 commit 225a826

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@elderjs/elderjs",
3-
"version": "1.7.2",
3+
"version": "1.7.3",
44
"main": "./build/index.js",
55
"types": "./build/index.d.ts",
66
"engineStrict": true,

src/routes/prepareRouter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export const getSpecialRequest = ({ req, server, serverLookupObject }: IGetSpeci
5757

5858
if (server.allRequestsRoute) {
5959
const dataSuffix = typeof server.allRequestsRoute === 'string' ? server.allRequestsRoute : '/allRequests.json';
60-
if (req.path === dataSuffix) {
60+
if (req.path === (server.prefix ? `${server.prefix}${dataSuffix}` : dataSuffix)) {
6161
// just needs any request.
6262
const k1 = Object.keys(serverLookupObject)[0];
6363
request = serverLookupObject[k1];

0 commit comments

Comments
 (0)