فهرست منبع

fix(config): add rewrite rule to handle missing installHook.js.map requests

vtugulan 6 ماه پیش
والد
کامیت
f6f29dfc78
1فایلهای تغییر یافته به همراه8 افزوده شده و 0 حذف شده
  1. 8 0
      next.config.ts

+ 8 - 0
next.config.ts

@@ -2,6 +2,14 @@ import type { NextConfig } from "next";
 
 const nextConfig: NextConfig = {
   output: "standalone",
+  async rewrites() {
+    return [
+      {
+        source: "/installHook.js.map",   // the request that raises 404
+        destination: "/404",             // serve a silent 404 response
+      },
+    ];
+  },
 };
 
 export default nextConfig;