class SvelteOnRails::Configuration
def ssr_manifest
def ssr_manifest file = rails_root.join('public', 'vite-ssr', 'manifest.json') if watch_changes? begin JSON.parse(File.read(file)) rescue raise "ERROR: Could not read public/vite-ssr/manifest.json." end else @manifest ||= JSON.parse(File.read(file)) end end