Преглед на файлове

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;