Is there anyway to lock a function or file from being edited?

Hi @james-7177, welcome to the Vercel Community!

The file lock feature actually sounds like a good one. You can also use the @FILENAME feature to tag a certain file and then v0 will only make changes in the scope of that file. Have you tried this?

I think this should be possible with project instructions, as explained in the recent custom instructions post: