Next.js Discord

Discord Forum

Vercel tmp folder

Answered
thomasschwinn posted this in #help-forum
Open in Discord
I can access a tmp folder on vercel to store files temporarily, are these files available throughout the whole lifespan of my deployment or are they deleted on a regular timeframe?
Answered by linesofcode
They are deleted as soon as the container running your vercel function spins down
View full answer

5 Replies

They are deleted as soon as the container running your vercel function spins down
Answer
Without any traffic that can be as soon as a 5 minutes
The vercel tmp directory can’t be used to persist anything
And they do not last the deployment
thank you