Add files to root directory

How to upload files to my sites root directory (https://example.com/file.txt), I’m trying to have loader.io config in the Root directory, i used ./launcher enter app and kept my file in public directory however after updating my instance it is gone.

It’s not possible; for example with Google Search Console validation, you use a DNS method of validation instead.

4 Likes

This is possible, with Cloudflare proxy and worker

  1. proxy your website with cloudflare

  2. create an HTTP handler service, respond with your loader-io code

  3. add the route to Routes in the worker’s triggers tab

2 Likes