@djangocfg/nextjs 2.1.481 → 2.1.482

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -24,7 +24,6 @@ declare function createRouting(config?: Partial<I18nConfig>): {
24
24
  localePrefix?: next_intl_routing.LocalePrefix<string[], "always" | "as-needed" | "never">;
25
25
  domains?: never;
26
26
  localeCookie?: boolean | {
27
- name?: string;
28
27
  maxAge?: number | undefined;
29
28
  priority?: "low" | "medium" | "high" | undefined;
30
29
  domain?: string | undefined;
@@ -32,6 +31,7 @@ declare function createRouting(config?: Partial<I18nConfig>): {
32
31
  secure?: boolean | undefined;
33
32
  sameSite?: true | false | "lax" | "strict" | "none" | undefined;
34
33
  partitioned?: boolean | undefined;
34
+ name?: string;
35
35
  };
36
36
  alternateLinks?: boolean;
37
37
  localeDetection?: boolean;
@@ -46,7 +46,6 @@ declare const routing: {
46
46
  localePrefix?: next_intl_routing.LocalePrefix<string[], "always" | "as-needed" | "never">;
47
47
  domains?: never;
48
48
  localeCookie?: boolean | {
49
- name?: string;
50
49
  maxAge?: number | undefined;
51
50
  priority?: "low" | "medium" | "high" | undefined;
52
51
  domain?: string | undefined;
@@ -54,6 +53,7 @@ declare const routing: {
54
53
  secure?: boolean | undefined;
55
54
  sameSite?: true | false | "lax" | "strict" | "none" | undefined;
56
55
  partitioned?: boolean | undefined;
56
+ name?: string;
57
57
  };
58
58
  alternateLinks?: boolean;
59
59
  localeDetection?: boolean;
package/dist/index.mjs CHANGED
@@ -14,7 +14,7 @@ var require_package = __commonJS({
14
14
  "package.json"(exports, module) {
15
15
  module.exports = {
16
16
  name: "@djangocfg/nextjs",
17
- version: "2.1.481",
17
+ version: "2.1.482",
18
18
  description: "Next.js server utilities: sitemap, health, OG images, contact forms, navigation, config",
19
19
  keywords: [
20
20
  "nextjs",
@@ -626,7 +626,12 @@ var CSP_VENDOR_PRESETS = {
626
626
  imgSrc: ["https://i.vimeocdn.com"]
627
627
  }
628
628
  };
629
- var CSP_BASELINE_VENDORS = ["cloudflare"];
629
+ var CSP_BASELINE_VENDORS = [
630
+ "cloudflare",
631
+ "google-analytics",
632
+ "youtube",
633
+ "vimeo"
634
+ ];
630
635
  function resolveCspVendors(vendors, warnUnknown = true) {
631
636
  const merged = {
632
637
  scriptSrc: [],
@@ -1774,7 +1779,7 @@ function createBaseNextConfig(options = {}) {
1774
1779
  const cspDisabled = options.csp === false;
1775
1780
  const cspExtra = typeof options.csp === "object" ? options.csp : void 0;
1776
1781
  const vendorNames = [
1777
- ...cspExtra?.cloudflare === false ? [] : CSP_BASELINE_VENDORS,
1782
+ ...cspExtra?.baseline === false ? [] : CSP_BASELINE_VENDORS,
1778
1783
  ...options.stripe ? ["stripe"] : [],
1779
1784
  ...cspExtra?.vendors ?? []
1780
1785
  ];