{"repo":"revskill10/next-routes-middleware","free":true,"listed":false,"github":"https://github.com/revskill10/next-routes-middleware","clone":"git clone https://github.com/revskill10/next-routes-middleware.git","description":"Universal Lambda Routing","language":"JavaScript","stars":39,"topics":["nextjs","expressjs"],"license":"MIT","category":"saas-starters-boilerplates","readme_excerpt":"Next Routes Middleware Universal Lambda Routing for Next.JS application Roadmap for 4.0.0 1. Integrate with existing now.json in now.config.js for better integration with existing ecosystem 2. Provide @now/node to replace @now/next (Next V8 provides a serverless lambda out of the box) Demo Demo Installation Features - Replicate next.js for Now V2 config to develop locally. - Support named regular expressions used in routes . - Allow custom routes handling with all Express.js http methods. - Client-side routing - Compiling to Now V2 compatible JSON config Usage Step 1: Create your own now.config.js : Note : You can skip step 2 by using now-dev-cli, which will run this custom server for you. Step 2: Using next-routes-middleware in your custom server.js Step 3: Using in pages/more complex.js Customization and Overriding Routes Suppose you want to do something else beyond rendering, you can provide custom routes handler like this customRoutes.js Then use in your custom server.js Compiled now config file This is the compiled Now config file Usage with next/link and styled-components for client-side routing styled-link.js Usage on client-side","default_branch":null,"files":null,"tree":[],"storefront":"/r/revskill10","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/revskill10/next-routes-middleware/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}