From 5316464c17d22bee8c6b2ecdddbc54a9b8503395 Mon Sep 17 00:00:00 2001
From: Takashi Kato <tohosaku@cosmichorror.org>
Date: Tue, 9 Jun 2026 19:40:47 +0000
Subject: [PATCH] Fix manifest update

---
 config/initializers/10-patches.rb | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/config/initializers/10-patches.rb b/config/initializers/10-patches.rb
index b25ca00aef1..2e96708718c 100644
--- a/config/initializers/10-patches.rb
+++ b/config/initializers/10-patches.rb
@@ -144,7 +144,14 @@ module Propshaft
     end
 
     def manifest_outdated?
-      !!load_path.asset_files.detect{|f| f.mtime > config.manifest_path.mtime}
+      new_manifest     = JSON.parse(load_path.manifest.to_json)
+      current_manifest =
+      begin
+        JSON.parse(config.manifest_path.read)
+      rescue JSON::ParseError
+        nil
+      end
+      current_manifest != new_manifest
     end
 
     def load_path
-- 
2.47.3

