Question

App Platform | Catch All File Inside Directory

Posted December 17, 2021 96 views
ReactDigitalOcean App Platform

I have a static site deployment with a build folder that looks like this

index.html
favicon.ico
app/index.html

Where “app/index.html” is a SPA.

I’m trying to set up “catch_all” to my SPA “app/index.html”, but the option doesn’t seem to support a path. I keep getting an error saying that it needs to be a valid file.

Any help is appreciated! Thanks

1 comment
  • Update

    I seem to have gotten it to work by deploying the static website twice. One at “/” and the other at “/app”. Using “catch_all” with the “/app” deployment.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
Submit an Answer
1 answer

Hey there!

Unfortunately you can’t specify a different directory for the catch_all as you mentioned, but that is a great idea to add that feature. I’d recommend adding that idea to our ideas page.

Nate