github withastro/astro @astrojs/netlify@6.4.0

latest releases: @astrojs/sitemap@3.6.1-alpha.0, @astrojs/node@10.0.0-alpha.2, @astrojs/netlify@7.0.0-alpha.3...
5 months ago

Minor Changes

  • #13952 de82ef2 Thanks @ematipico! - Adds support for the experimental static headers Astro feature.

    When the feature is enabled via option experimentalStaticHeaders, and experimental Content Security Policy is enabled, the adapter will generate Response headers for static pages, which allows support for CSP directives that are not supported inside a <meta> tag (e.g. frame-ancestors).

    import { defineConfig } from 'astro/config';
    import netlify from '@astrojs/netlify';
    
    export default defineConfig({
      adapter: netlify({
        experimentalStaticHeaders: true,
      }),
      experimental: {
        cps: true,
      },
    });

Patch Changes

Don't miss a new astro release

NewReleases is sending notifications on new releases.