til

today i learned

View on GitHub

Debug Next.js Fetch Requests

Make the following change in the next.config.js file -

/** @type {import('next').NextConfig} */
const nextConfig = {
    logging: {
        fetches: {
              fullUrl: true,
        },
    },
};

module.exports = nextConfig;

This will log the requests in the console when running the app in development mode.

source

docs