Skip to content

Commit

Permalink
add a nextjs patch to log requests, temporary
Browse files Browse the repository at this point in the history
  • Loading branch information
AmyrAhmady committed Feb 11, 2025
1 parent b0f5c93 commit c1b4076
Show file tree
Hide file tree
Showing 3 changed files with 348 additions and 2 deletions.
5 changes: 4 additions & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"dev": "next dev",
"build": "next build",
"start": "next start",
"test": "eslint --ext .tsx,.ts src/"
"test": "eslint --ext .tsx,.ts src/",
"postinstall": "patch-package"
},
"dependencies": {
"@babel/core": "^7.14.8",
Expand Down Expand Up @@ -40,7 +41,9 @@
"next-seo": "^4.26.0",
"normalize.css": "^8.0.1",
"nprogress": "^0.2.0",
"patch-package": "^8.0.0",
"polished": "^4.1.3",
"postinstall-postinstall": "^2.1.0",
"react": "17.0.2",
"react-color": "^2.19.3",
"react-dom": "17.0.2",
Expand Down
12 changes: 12 additions & 0 deletions frontend/patches/next+12.0.1.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/node_modules/next/dist/server/next-server.js b/node_modules/next/dist/server/next-server.js
index 584edde..c9c3bbc 100644
--- a/node_modules/next/dist/server/next-server.js
+++ b/node_modules/next/dist/server/next-server.js
@@ -171,6 +171,7 @@ class Server {
console.error(err);
}
async handleRequest(req, res, parsedUrl) {
+ console.log("server", req.url);
var ref23, ref1, ref2, ref3, ref4, ref5;
const urlParts = (req.url || '').split('?');
const urlNoQuery = urlParts[0];
Loading

0 comments on commit c1b4076

Please sign in to comment.