From a2b0c5f33fc2cdef1459e3dc8d381be0c4647797 Mon Sep 17 00:00:00 2001 From: Syd Amir Date: Sun, 15 Oct 2023 22:07:02 +0330 Subject: [PATCH] add another log --- src/server/serveStatic.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/server/serveStatic.ts b/src/server/serveStatic.ts index a0d4e8b4..5bf5c27b 100644 --- a/src/server/serveStatic.ts +++ b/src/server/serveStatic.ts @@ -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() @@ -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`