I have some a static subpage, external to Astro, that I want to serve along my Astro website, in a path like this: mywebsite.com/precompiledwebsite. For doing this, I placed the entire precompiledwebsite folder in the public folder of my Astro project. This folder has a root index.html file, and a series of subfolders with all the resources used by the precompiled website. For example, in precompiledwebsite/css, you can find css files that are referenced inside the root index.html file like this:
<link rel="stylesheet" href="./css/normalize.css">
After running npm run build, I can confirm that the entire precompiledwebsite folder is put under dist/precompiledwebsite. If I then run npm run preview, I can access the precompiled website by going to mywebsite.com/precompiledwebsite, exactly as intended. However, the CSS styles, as well as other resources, such as images, are missing, revealing that the relative paths seem not to be processed as paths relative to the location of the dist/precompiledwebsite/index.html folder, but rather from the root of the dist folder. What can I do about this?