vm:files_sync from v0 is blocking login and breaking my app development

Previously this has been working for months. Lately i cant get past the login becuase this is killing all of my auth flow. I have officially spend >$100 in credit to debug this but cant get passed this.

vm:files_synced is a v0 preview environment behavior — it’s not something you can remove. It fires whenever files sync in the IDE, which resets the preview iframe.

The solution is to make the auth flow resilient to these resets:

  1. When the preview resets back to /login, the session cookie is still valid
  2. The login page should detect the valid session and redirect immediately to /dashboard

Let me check if the current implementation handles this correctly: