Skip to content

Breaks connection with MongoDB #3

@nstranquist

Description

@nstranquist

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/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions