blomqma / next-rest-framework

Type-safe, self-documenting APIs for Next.js
https://next-rest-framework.vercel.app
Other
136 stars 18 forks source link

Do not log initialization info in prod #99

Closed blomqma closed 10 months ago

blomqma commented 10 months ago

This change prevents loggin the initialization info in prod environment, as the logging state is handled in memory and serverless environments will log it on every invocation of the docs route handlers.

This also refactors the project structure so that app router and pages router specific code is split into separate folders.

vercel[bot] commented 10 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
next-rest-framework ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 6, 2023 6:53pm
next-rest-framework-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 6, 2023 6:53pm