Change8

@astrojs/netlify@6.6.0

📦 astro
3 features🔧 5 symbols

Summary

This release introduces Netlify skew protection to ensure client and server version synchronization during deployments, automatically handling built-in features and providing a DEPLOY_ID for manual requests.

Migration Steps

  1. If making manual fetch requests to your site on Netlify, include the 'X-Netlify-Deploy-ID' header using 'import.meta.env.DEPLOY_ID' to ensure skew protection.

✨ New Features

  • Enables Netlify's skew protection feature to synchronize client and server versions during deployments.
  • Automatically includes deployment IDs in asset requests and API calls for Actions, View Transitions, Server Islands, and Prefetch.
  • Introduces the DEPLOY_ID environment variable for manual fetch requests on Netlify.

🔧 Affected Symbols

import.meta.env.DEPLOY_IDActionsView TransitionsServer IslandsPrefetch