heroku-cra-node icon indicating copy to clipboard operation
heroku-cra-node copied to clipboard

Using cache for client node-modules

Open shem8 opened this issue 5 years ago • 1 comments

From what I can see in the build log in the example, the cache isn't used when installing the dependencies when building the client. Seems like the node buildpack isn't supporting 2 build directories, so maybe it's better to use 2 buildpacks: one for node and one for the React app (maybe we can leverage your buildpack, but without the Nginx part).

shem8 avatar Dec 08 '20 07:12 shem8

Do you have the second directory set as a cache directory? Example.

If it's not actually working, is it because the react-ui build is performed after the caching takes place?

mars avatar Mar 26 '24 18:03 mars