Next.js Discord

Discord Forum

Preserve cache folder between deploys

Unanswered
MaKTaiL posted this in #help-forum
Open in Discord
I currently have my next app deployed to a Kubernetes on Google Cloud. Everytime a new update is pushed to the GitHub repository the app is redeployed. The problem with this is that the .next folder is reset along with the cache folder inside. Is there a way to link the cache folder to a different cdn and preserve it?

2 Replies

dont delete .next folder?
@aardani dont delete .next folder?
impossible, dockerfile runs on a complete empty folder, even if you deploy on Vercel the cache is reset