Is there a way for me to implement dynamic backend routes? I am working on an image hosting platform where users should be able to save their images on the server under unique domains like
http://localhost/<random_id>
. An example link would look something like http://localhost/a3Fafght5
. Despite searching online, I couldn't find any clear guidance on creating dynamic backend routes. The one resource I found mentioned using getStaticPaths to define all possible IDs beforehand, which is not feasible in my case. Since I don't know what the ID will be at build time, I need the flexibility to query the database for it, check its existence, and proceed accordingly.