Hi there, Im trying to yarn build and yarn serve my payload 2.0 project. I have built it on top of the ecommerce template.
When I'm running the app on dev all the routes work but on production the pages and routes are not being recognized and not built. I get 404 page not found.
I haven't changed anything about the structure, it's the same as the ecommerce template. Can someone help me please?
Am I missing something with the app router? It works on development but not compiling it during production build