Blue/Green deployment help
Answered
American Staffordshire Terrier posted this in #help-forum
American Staffordshire TerrierOP
Hi, I'm trying to implement blue/green deployments following this guide: https://vercel.com/guides/blue_green_deployments_on_vercel
It does switch from blue to green deployment as expected, but I have problem. Since blue is my main deployment when I switch to green deployment I get the html documet, but I'm unable to get the assets such as javascript and css of the green deployment , so the page looks broken.
I looked at the network tab and it seems that the browser tries to fetch the assets, but uses the blue deployment domain so it returns 404 error.
Maybe someone had this problem and got it working?
It does switch from blue to green deployment as expected, but I have problem. Since blue is my main deployment when I switch to green deployment I get the html documet, but I'm unable to get the assets such as javascript and css of the green deployment , so the page looks broken.
I looked at the network tab and it seems that the browser tries to fetch the assets, but uses the blue deployment domain so it returns 404 error.
Maybe someone had this problem and got it working?
Answered by American Staffordshire Terrier
Nevermind, I fixed it. For future people that might have the same issue:
I had to active skew protection in vercel and add this to next config:
experimental: {
useDeploymentId: true;
}
I had to active skew protection in vercel and add this to next config:
experimental: {
useDeploymentId: true;
}
1 Reply
American Staffordshire TerrierOP
Nevermind, I fixed it. For future people that might have the same issue:
I had to active skew protection in vercel and add this to next config:
experimental: {
useDeploymentId: true;
}
I had to active skew protection in vercel and add this to next config:
experimental: {
useDeploymentId: true;
}
Answer