Skip to content

Commit

Permalink
fix path
Browse files Browse the repository at this point in the history
  • Loading branch information
genox committed Mar 25, 2023
1 parent 02f9a7b commit 82fb35c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions frontend/next.pwa-cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ module.exports = [
// never cache API calls. we use useSWR for that.
if (pathname.startsWith('/backend/')) return true;
if (pathname.startsWith('/api/auth/')) return true;
if (pathname.startsWith('/api/ping/event')) return true;
if (pathname.startsWith('/api/')) return true;
return false;
},
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/pages/api/ping/[...path].ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ export default function stats(req: NextApiRequest, res: NextApiResponse): Promis
case req.url?.includes('/api/ping/script.js'):
req.url = req.url?.replace('/api/ping/script.js', '/matomo.js');
break;
case req.url?.includes('/api/ping/ping'):
req.url = req.url?.replace('/api/ping/ping', '/matomo.php');
case req.url?.includes('/api/ping/event'):
req.url = req.url?.replace('/api/ping/event', '/matomo.php');
break;
default:
break;
Expand Down

0 comments on commit 82fb35c

Please sign in to comment.