Kovos · Pricing · Blog · FAQ · Comparisons FR ES DE

2 min read

Protecting files: locked files

Some files must never be changed? Lock them.

Your app is made of files, stored in folders, exactly like the documents on your computer. In the Rules tab, the Locked files section lets you forbid Kovos from changing some of them.

When to use it

  • A file was written by hand by a developer and must stay as it is.
  • A page approved by a client must not change any more.
  • Elements taken from another tool must be preserved.

How to write it

Enter one path per line. A path is a file's address: the folder names, separated by slashes “/”, then the file name. You'll find these names in the Code tab.

  • src/pages/Index.tsx: the file Index.tsx, stored in the pages folder, itself in the src folder;
  • supabase/migrations/: the whole migrations folder;
  • src/integrations/supabase/**: the two asterisks mean “this folder and absolutely everything inside it”.

The independent checker checks that these locks are respected with every change.

Not sure which file to lock? Ask Kovos in Chat mode: “which file contains the Pricing page?”.