./public folder gets copied to the ./dist root when my Svelte code is built. I use that for a version.json file and static images. I'm guessing that there is something similar for any other framework. What framework are you using? I don't recommend doing that for .js or .ts that your Functions import though. Rather, import those in your Function source. When you do that, the Pages build process incorporates them into the renamed bundles and rewrites the imports appropriately so you never need to know the names.