I get a copy of those files in .next/_posts/ and .next/serverless/_posts/.
Now how do I access them in the SSR code in production? process.cwd() gives me /var/task/. The _post directory is not there, nor can I read the contents of that directory to figure out where to look.
I suspect the folder is at /var/task/_next/data/s-igIFZeCsERZQCzNdRPv/_posts/ where the ID in the path is the BUILD_ID? Is that right?
@jianxing@ajay After the build, try to find the file in .xdn/lambda subdirectory as that will reflect what will be put into your serverless instance. If the file is there, it should just be a matter of navigating that structure with /var/task as the root.