From cde31976f4d3487f2f64efc774e12e0272bd7d6a Mon Sep 17 00:00:00 2001 From: Cory Sanin Date: Thu, 14 Aug 2025 01:15:25 -0500 Subject: [PATCH] fix pixel --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 44d655e..79e1893 100644 --- a/src/index.ts +++ b/src/index.ts @@ -53,7 +53,7 @@ app.get('/favicon.ico', (_, res) => { const sendPixel = (_: express.Request, res: express.Response) => { res.set('Cache-Control', 'private, max-age=31557600'); // one year visitCount++; - res.sendFile(Path.join(import.meta.dirname, 'assets', 'images', 'webp', 'cache-me.webp')); + res.sendFile(Path.resolve(import.meta.dirname, '..', 'assets', 'images', 'webp', 'cache-me.webp')); } app.get('/cache-me.webp', sendPixel); @@ -80,4 +80,4 @@ process.on('SIGTERM', async () => { await saveVisits(); console.log('done. shutting down...'); webserver.close(); -}); \ No newline at end of file +});