Skip to content

Commit

Permalink
chore: use absolute path
Browse files Browse the repository at this point in the history
  • Loading branch information
svedova committed Mar 25, 2024
1 parent 9d3c35b commit 7b5945c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/callbacks/api.ts
Expand Up @@ -60,7 +60,7 @@ export const handleApi = (
// This is what we do here:
// /api/my-path?query-param => /my-path
const requestPath =
req.url?.split(/[\?#]/)[0].split("/").slice(2).join("/") || "/";
"/" + (req.url?.split(/[\?#]/)[0].split("/").slice(2).join("/") || "");

const file = matchPath(cachedFiles, requestPath, req.method);

Expand Down

0 comments on commit 7b5945c

Please sign in to comment.