Skip to content

Commit

Permalink
add another log
Browse files Browse the repository at this point in the history
  • Loading branch information
hemedani committed Oct 15, 2023
1 parent 2d60038 commit a2b0c5f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/server/serveStatic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
const checkFiles = async (req: Request, staticPath: string[]) => {
const url = new URL(req.url);
const checkPath = () => {
const isInPath = staticPath.some(path => url.pathname.startsWith(path));
const isInPath = staticPath.some((path) => url.pathname.startsWith(path));
return isInPath;
};
return checkPath()
Expand All @@ -35,6 +35,7 @@ const checkStaticPath = async (
schemasObj: ISchema,
actsObj: Services,
) => {
console.log("inside checkStaticPath ", { url });
return url.pathname === `/playground/static/client.js`
? await getClientReact()
: url.pathname === `/playground/static/index.css`
Expand Down

0 comments on commit a2b0c5f

Please sign in to comment.