URL Rewrites for App Platform Sites
complete
W
Whitney Jutzin
complete
Thank you for reaching out and bringing this great feedback to us! This is now a released feature: https://docs.digitalocean.com/products/app-platform/how-to/url-rewrites/ If you need any help using it, please don't hesitate to reach out to our support team. Thank you again!
Marco Pfeiffer
Whitney Jutzin Neat. But sadly, it falls short a tiny bit.
If you create a properly routed client side app, you need, at the very least, some catch all feature.
You can sort of emulate it by redirecting everything to a single html file, but a statically exported next app has an html file per route.
Something like /bookings/[id].html where id can be anything.
S
Sérgio Isidoro
Marco Pfeiffer I logged another idea for a catch all / wildcards: https://ideas.digitalocean.com/app-platform/p/app-platform-http-request-routes-wildcard-re-writes
Martin Brüggemann
+1 Could be super simple like netlify offers it with a "pretty urls" checkbox and basic _redirects file https://docs.netlify.com/routing/redirects/
F
Felipe Hefler
Or, for starters, have at least some basic options for using clean URLs/slugs.
A
Alan Daniel
It's something very important, since most part of the time we're deploying single pages apps and use routers.
Melvin Mupondori
Alan Daniel: Yea true. I think there should be a way to accommodate SPAs.