I deployed to app engine with nodejs8 runtime and got a 500. Im deploying a next.js application, and upon reviewing StackDriver I get. It appears .next might be getting ignored.
This happened to me when I removed a file that one of my pages (in the /pages folder) happened to be referencing.
Either restore that file, or remove the file that is referencing the missing file.