flareact icon indicating copy to clipboard operation
flareact copied to clipboard

static files are not being served when dynamic route being used

Open subhendukundu opened this issue 3 years ago • 2 comments

Describe the problem:

Static files from the public folder are not being used with a dynamic route such as https://example.com/[slug] I am trying to access the robots.txt.

Link to a minimal reproduction:

https://github.com/subhendukundu/cool-bio-flareact-styled

subhendukundu avatar Feb 26 '21 19:02 subhendukundu

I have the same problem when I try to access some images in the public folder, while a dynamic path is created. I would also like to mention that when I remove that dynamic path, then this problem disappears and I have access to static files.

laur80 avatar Jun 25 '21 10:06 laur80

Try a temporary workaround, go to cloudflare panel and set the flareact worker on the public route. eg http://yourdomain.com/public Should work

traffisco avatar Jun 25 '21 11:06 traffisco