Couldn't find a `pages` directory
I just cloned your code and run exactly what you descript to see how it works but when I run yarn serve
"Couldn't find a pages directory. Please create one under the project root" this came out
@nazacity please let us know what sample you used and what steps you took before yarn serve.
I followed nextjs-with-firebase-hosting
Error: > Couldn't find a pages directory. Please create one under the project root
the issue is distDir in next.config.js. You can't have dist outside project directory which currently is ../funcitons/next. I suggest to build inside project directory and then copy to functions directory