Hey guys,

I’ve deployed a static website using App platform. It’s a single page application so keeping the JS bundle as light as possible is critical.
I don’t see any options to setup serving gzip/brotli assets for browsers that support it. For now, the CSS and JS are all uncompressed which isn’t ideal.

Is this possible to setup right now? I didn’t see anything on the GUI or the App specification (https://www.digitalocean.com/docs/app-platform/references/app-specification-reference/)

if not support, is this something on your roadmap?

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

👋 Thanks for the question.

We don’t current offer this functionality, but we have not dismissed it. I’ve created an internal ticket so we can evaluate adding this functionality to our roadmap.

  • @cbaker thanks for the response. I decided not to deploy with App Platform yet since it doesn’t look ready for single page applications. The biggest roadblock is redirects, so if possible please prioritize that first.
    For an SPA, all routes need to be redirected to index.html. Right now, it’s impossible to do that short of declaring index.html as the error resource, which still results in a 404 error which isn’t good. Manually declaring all routes is not possible either because some routes are dynamic.
    Kudos for a very easy to use product so far, I’m sure with a few more features it’ll be a great way to deploy SPAs in the future.

  • @cbaker +1 for the support for gzip. Github Pages enables it automatically. I think we’re going to need DO App Platform static sites to do the same before we go all in on App Platform.

  • Is there any update on this? Gzip is a pretty important feature