App Platform | Catch All File Inside Directory

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



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.

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

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.