So I don't think this mechanism is exactly correct, can you demo it with an actual nextjs project, instead of your mock server?
I'm debugging it currently, maybe I'm not on the right path after all.
1. npm start 2. npm run exploit