Skip to content

1.1.11

Choose a tag to compare

@davidvkimball davidvkimball released this 01 Nov 04:42

Finishes the deployment fixes from 1.1.10. Switching host now cleans up everything the previous host generated, and a build no longer leaves files showing as changed in git.

  • Switching host: the previous host's generated redirects are now removed from netlify.toml and vercel.json too, not just from public/_redirects and public/_headers. Anything you wrote yourself stays, and vercel.json is deleted only when nothing else is in it.
  • Netlify: your own [[redirects]] in netlify.toml are kept when they sit above the # Generated redirects from content aliases comment. They used to be dropped on every build.
  • Cloudflare Workers: wrangler.toml keeps its compatibility_date instead of being bumped to today on every build.
  • Windows: files are written in the line endings they already have, so astro.config.mjs and netlify.toml no longer show as modified after a build that changed nothing.
  • Sites with no aliases: switching host cleans up here too, and a Cloudflare build no longer adds a blank line to your public/_redirects.

public/_redirects and public/_headers are no longer gitignored, so your own rules in them can be committed and deployed. --dry-run and --validate no longer change any files.