nextjs-react-router icon indicating copy to clipboard operation
nextjs-react-router copied to clipboard

Breaks connection with MongoDB

Open nstranquist opened this issue 4 years ago • 0 comments

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/

nstranquist avatar Aug 26 '21 17:08 nstranquist