Can't make mirageJs and the new App router work
Unanswered
Peterbald posted this in #help-forum
PeterbaldOP
I am trying to use mirageJs in my NextJs app using the new App router, yet I keep getting 404 for my mocked endpoints (I followed the tutorial in mirage's docs but unfortunately it is catered to the old Pages router). Anyone managed to make it work?
3 Replies
PeterbaldOP
It's important to note that it fails since I am probably not instantiating the mirage server at the correct place (I tried at the root layout but failed). In the docs it sayd to instantiate at the starting point of the app (such as an index.js) but there is no such thing with the new App router, any suggestions where I should instantiate it?
PeterbaldOP
Anyone?
PeterbaldOP
@Siberian No response in over a week...