I am definitely missing something here. I have created a website using plasmic, that also has pages that are dynamically generated (it has a slug in the path). It takes the slug, and fetches some data using the REST fetcher. This all works fine in studio, locally dev and also when I build the nextjs project and running it locally. But when I deploy it to vercel, only pages without dynamic params in URL path are rendering correctly. Everything that is dynamic returns a 500. Logs on vercel says Error: Cannot find module '@plasmicapp/watcher' . I’ve created the code base using “create-plasmic-app”, chose Nextjs with the “old” way it handles pages, and using loader.
Interestingly, the studio works with the new app host url from vercel (even the dynamic pages). What I am missing?
I think it’s because the paths were not added to [[...catchall]].tsx, how can I add them without knowing all slugs upfront? also there are too many, so it shouldn’t be generated upfront