Custom install command
I need to run a custom install command when installing packages for some reasons. Is there a way I can achieve this ?
2 Replies
I assume you are talking about Cloudflare Pages, If so, #pages-help in the future
If you want to take over the dependency install, you can set an environment variable
SKIP_DEPENDENCY_INSTALL
to any value, ex: SKIP_DEPENDENCY_INSTALL
= 1
and then do npm install --force
in your build command (or whatever you want)@Chaika Yep exactly, sorry I didn't see there was a dedicated help page for CF page. THat's exactly what I want to do, big thanks