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:
- When the preview resets back to
/login, the session cookie is still valid - The login page should detect the valid session and redirect immediately to
/dashboard
Let me check if the current implementation handles this correctly: