Version skew; What happens after 12 hours?

Our team is testing Vercel version skew with Sveltekit.

In our test project, we have a form you can submit.

Most things seem to work, but something unclear to me is what exactly is supposed to happen when you submit a form from an old version, after 12 hours.

At the moment, the old version seems to be alive despite being older than 12 hours. I hope you can help clarify what the intended behavior is here, thanks.

1 Like

Can you share us more information about what behavior you are seeing? The deployment should indeed remain alive and it shouldn’t just be blocked to remain accessible. Do you have a screencast / logs which we can refer?

Also note that If you are using SvelteKit, you will need to install @sveltejs/adapter-vercel version 5.2.0 or newer in order to enable Skew Protection.

2 Likes

Hi @swarnava

I have now updated the project to the newest version of the adapter-vercel, and enabled version skew.

I have recorded what happened when I submitted a form, from an expired deployment. You can view the results here:

So I guess the conclusion is that when a deployment is expired, it will route requests to the current deployment.

1 Like

Hi there,

Thank you for sharing the detailed video. I checked with team and this is currently intended behavior.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.