Next.js Discord

Discord Forum

Inconsistent draft mode behaviour - some paths get 404 without hitting server, others work

Unanswered
Masai Lion posted this in #help-forum
Open in Discord
Avatar
Masai LionOP
I'm really struggling here - I have draft mode working 100% correctly on my local development environment but when deployed to Vercel only some paths work, others return 404. I've reviewed my code several times to ensure that there are no implementation differences between the working and nonworking paths and I'm pretty confident that I'm doing things consistently for every path.
The logs on Vercel show the draft mode working requests make it to the application server but the paths that bounce with a 404 don't ever get logged so it looks like Vercel is serving them out of cache. Any ideas or pointers as to what I might be doing incorrectly would be greatly appreciated.

0 Replies