Skip to content

Commit

Permalink
remove spammy trace and add next logging for requests
Browse files Browse the repository at this point in the history
  • Loading branch information
MikaelSiidorow committed Jan 24, 2024
1 parent cb6a34c commit 8f5c136
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion web/lib/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const fetchAPI = async <T>(
const requestUrl = `${getStrapiURL(
`/api${path}${queryString ? `?${queryString}` : ""}`
)}`;
console.trace("HERE");
// console.trace("HERE");
// Trigger API call
const response = await fetch(requestUrl, mergedOptions);
// Handle response
Expand Down
5 changes: 5 additions & 0 deletions web/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ const nextConfig = {
dirs: ["middleware.ts", "app", "context", "components"],
},
output: "standalone",
logging:{
fetches: {
fullUrl: true,
}
}
};

module.exports = nextConfig;

0 comments on commit 8f5c136

Please sign in to comment.