Next.js Discord

Discord Forum

Middleware on a custom node server with Next.JS app

Unanswered
Goldstripe sardinella posted this in #help-forum
Open in Discord
Goldstripe sardinellaOP
Anyone aware of examples? I'm unable to see console logs that I expect to execute within my createServer callback.

Suppose for instance I wanted to log out parsedUrl in the [Custom Server](https://nextjs.org/docs/pages/building-your-application/configuring/custom-server) example every time an API route on my custom server is hit. Simply logging it there doesn't seem to work. Any idea why?

Thanks in advance!

0 Replies