I am using Kirby as a headless CMS, providing data to a PWA as JSON via custom endpoints setup as routes. I’m processing my routes with snippets and these generate the data structures required using normal Kirby methods.
I have migrated Kirby to a new server, and the URLs provided by the methods such as
$image->resize(1920, 1080)->url(); are referring to files in the
/media directory which aren’t present on the new server and therefore aren’t showing up.
Is there a way to get Kirby to either [a] regenerate all these files programatically or [b] somehow reset the relationship that causes Kirby to think they are there in the first place?
Or do I have to upload all the files to the new server (there are a hella lot of 'em)?