Have to reinstall subdirectory node modules every day

Hi @garann sorry for the delay here. I wanted to double check what I’m going to tell you and I had a dickens of a time getting a working example. I think I have one now, although my remix of one of your projects that fits the bill doesn’t actually work, but I think the errors are not pnpm install related but are instead related to the fact that I don’t have the proper .env set up.

I think what would work for you is to add an install script to your main package.json that executes the install you’re having to do manually right now. something along the lines of "install":"cd /app/client && pnpm install && cd /app".

How I think that will help is that I think you’re running into the every-12-hour container restart. Glitch will run the contents of the “install” script when the project starts up and runs it’s install step, so this should do what you’re doing manually without your hands-on involvement.

Let me know if this works for you!