Browse Source

pnpm v10升级到v11

fogwind 8 giờ trước cách đây
mục cha
commit
faba5a153b
4 tập tin đã thay đổi với 16 bổ sung10 xóa
  1. 0 1
      .npmrc
  2. 1 1
      package.json
  3. 8 1
      pnpm-workspace.yaml
  4. 7 7
      src/utils/constants/server.ts

+ 0 - 1
.npmrc

@@ -1 +0,0 @@
-public-hoist-pattern[]=*@heroui/*

+ 1 - 1
package.json

@@ -66,5 +66,5 @@
     "ts-node": "^10.9.2",
     "typescript": "^5"
   },
-  "packageManager": "pnpm@10.14.0+sha512.ad27a79641b49c3e481a16a805baa71817a04bbe06a38d17e60e2eaee83f6a146c6a688125f5792e48dd5ba30e7da52a5cda4c3992b9ccf333f9ce223af84748"
+  "packageManager": "pnpm@11.26.0+sha512.fc0e2bf890b9f983611f1ab68c0637bce914390653699f83c1a78b005ed25f2c81e77920c8fd8eee2ecf0b58b28cdcb00a84d97f69bcf7c56b2f344710238664"
 }

+ 8 - 1
pnpm-workspace.yaml

@@ -1,6 +1,13 @@
 packages:
   - '.'
 
+allowBuilds:
+  '@heroui/shared-utils': true
+  unrs-resolver: true
+
 overrides:
   '@types/react': '19.2.14'
-  '@types/react-dom': '19.2.3'
+  '@types/react-dom': '19.2.3'
+
+publicHoistPattern:
+  - "*@heroui/*"

+ 7 - 7
src/utils/constants/server.ts

@@ -18,14 +18,14 @@ export const configHeader = [
     source: "/:path*",
     headers: [
       { key: "Referrer-Policy", value: "strict-origin-when-cross-origin" },
-      { key: "X-Frame-Options", value: "DENY" },
+      //{ key: "X-Frame-Options", value: "DENY" },
       { key: "X-Content-Type-Options", value: "nosniff" },
-      { key: "X-XSS-Protection", value: "1; mode=block" },
-      {
-        key: "Permissions-Policy",
-        value:
-          "camera=(), microphone=(), geolocation=(), browsing-topics=()",
-      },
+      // { key: "X-XSS-Protection", value: "1; mode=block" },
+      // {
+      //   key: "Permissions-Policy",
+      //   value:
+      //     "camera=(), microphone=(), geolocation=(), browsing-topics=()",
+      // },
     ],
   },
   // Cache dynamic pages - shorter cache for frequently updated content