Closed AmoabaKelvin closed 11 months ago
Introduced host
variable in link page
In the link page file, a new variable host
was added which was further utilized in the fetch
URL to access data. This change contributes to the code's flexibility and adaptability across different hosting environments.
Enhanced logging in API links route
The API links route file was modified to import headers
from the framework package next/headers
, enabling more detailed access to header information. With this, new console logs were also introduced to trace user agent details (device, browser info), user's IP address, and the URL being accessed. These logs will assist in tracking user behaviour and traffic sources, valuable for analysis and debugging purposes. Furthermore, a change was made in the GET
function to capture and log these user details, augmenting understanding and control of server requests.
The latest updates on your projects. Learn more about Vercel for Git ↗︎