nextjs-react-router
nextjs-react-router copied to clipboard
Breaks connection with MongoDB
I noticed that the section in next.config.js breaks my api calls to a mongodb instance.
async rewrites() { return [ { source: '/:any*', destination: '/', }, ]; },
Is there a workaround? And is there an advantage to this layout technique with react-router as opposed to the ones mentioned here? https://adamwathan.me/2019/10/17/persistent-layout-patterns-in-nextjs/