Enabling Skew Protection on a statically rendered app #6496
-
SummaryHey all, We have a statically rendered app using Vite and we'd like to enable skew protection on it. What's the recommended approach for this?
From the above note in the docs, it seems we'd need to set a cookie. Although I'm wondering what the best practise would be. ExampleNo response Steps to Reproducen/a |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 10 replies
-
Were you able to do it? |
Beta Was this translation helpful? Give feedback.
-
This discussion was automatically locked because the community moved to a new site. Please join us at vercel.community |
Beta Was this translation helpful? Give feedback.
@gajraj-gan I published it to npm: https://github.com/bitttttten/vite-vlugin-vercel-skew-protection/
Do you want to give it a look and see if it works for you? There may be some edge cases I have missed, and you might be using a different vite.config than we are, however this works well for us!