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.
Solution:Jump to solution
Pepijn, use
NO_CACHE=1
instead. See this thread: https://discord.com/channels/713503345364697088/1207963995487739924/12101109050865172895 Replies
Project ID:
a56aa1ca-dc73-4af1-8ff2-6d55627503a2
a56aa1ca-dc73-4af1-8ff2-6d55627503a2
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.Thanks!
Although still an option to choose through a UI element would be convenient in the future.
Solution
Pepijn, use
NO_CACHE=1
instead. See this thread: https://discord.com/channels/713503345364697088/1207963995487739924/1210110905086517289