R
Railway10mo ago
Pepijn

Redeploy without cache

I have an instance with NextJs deployed, where the .next cache folder needs to be cleared, because the build had stale files and breaking the build output. I need a way to remove that file, more easily I would expect to have a checkbox on redeploy, to redeploy without any caches. I created a second image with exact same configuration, which works for now. But of course in production not really an option to do it like this, to create a new instance and reset domains.
5 Replies
Percy
Percy10mo ago
Project ID: a56aa1ca-dc73-4af1-8ff2-6d55627503a2
Pepijn
PepijnOP10mo ago
a56aa1ca-dc73-4af1-8ff2-6d55627503a2
steadymade
steadymade10mo ago
I need the same type of thing. It seems my npm packages are getting cached even after I've pushed newer changes to my github branch. Having a way to redeploy without any caching is much needed Set an envar NIXPACKS_NO_CACHE to 1. Just worked for me.
Pepijn
PepijnOP10mo ago
Thanks! Although still an option to choose through a UI element would be convenient in the future.
Solution
Want results from more Discord servers?
Add your server