Experience-Monks/nextjs-boilerplate

[Feature] Middleware API proxy

iranreyes opened this issue · 3 comments

Is your feature request related to a problem? Please describe.
Final API endpoints are password protected.

Describe the solution you'd like
Local middleware without protection

Describe alternatives you've considered
NodeJS server

What does the proposed API look like?
A mirror of the real API endpoints

Additional context
@jeff-ong had this issue in a recent project

@iranreyes @jeff-ong NextJS has API routes feature, and it works out of box. it does not require any NodeJS server running on the side. Anyone can write their own API routes with mock data and simulate it without protection worry. We have used this feature in 2002-ComplexLand project and maybe more projects that I do not aware of.

Here is a reference link

Please feel free to close this ticket if that is what you have been looking for.

Down to close it

Closing the issue.