Thank you for the reply and DM, @kartikparmar.
Since Local’s site data is missing (your sites themselves should still be on your hard disk — it’s just the sites.json file that is blank), you can try restoring sites in a couple of ways:
If you have a backup of your hard drive, you can try restoring that sites.json file to an earlier version.
If you don’t have a backup, you can try to recover your existing sites by following these steps:
- Quit Local.
- Open the Windows File Explorer.
- Make sure you have enabled “show hidden items”.
- Browse to This PC → [your hard drive] → Users → [your username] → AppData → Roaming → Local.
- Rename the
sites.json
file tosites-old.json
. - You should now be able to start Local. Your sites will not appear in the list, but we’ll try to restore them next.
- In Windows File Explorer, locate your Local sites here: PC → [your hard drive] → Users → [your username] → Local Sites.
- Right click each of your sites folders, and choose “Compress to ZIP file” to make a zip file from each site folder.
- Drag each zip file into Local to import it (you may have to give it a new name when prompted to choose one during import).