Support for Strapi deployment for sub-path without proxy

Side Note: Strapi 5 provides the ability to define the public directory , but the doesn’t solve the issue above because subpath is always appended and expected in the folder path.
As an example if the public dir is set to /public/newfolder then preview is expecting it to be at /public/newfolder/test