Report this

What is the reason for this report?

Deploying a localized app on App Platform

Posted on March 9, 2025

Hello,

I am trying to deploy a localized Angular application on App Platform but I am facing some trouble with the routing.

Without localization, it deploys fine.

After localization, a copy of the assets is made for every locale:

  • “en”: en/index.html, en/bundle.js, …
  • “sp”: sp/index.html, sp/bundle.js, …

I tried creating a recourse per locale, changing Route Path:

  • / for “en” (so it loads as default)
  • /sp for “sp”

With this configuration, the English version works under /, but everything else seems to also redirect to / as well

Is such a use case supported?



This textbox defaults to using Markdown to format your 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 Nodas 👋

Interesting setup! I haven’t done this exact localization flow on App Platform with Angular, but from what you’re describing, it sounds like a routing/config issue rather than a limitation of App Platform itself.

If Angular is using path-based routing, App Platform might not be handling the localized subpaths like /sp correctly by default — especially since single-page apps need all routes to be redirected to index.html, otherwise you get unexpected fallbacks to /.

You might be able to fix this by setting up custom rewrite rules, but I don’t think App Platform currently supports per-path rewrites like you’d do in a traditional web server config (e.g., Nginx or Netlify _redirects).

You could try setting index.html as the catch-all fallback for all routes, even for localized paths.

Alternatively, structure your app so all languages are handled by a single entry point and Angular takes care of the routing internally.

If that doesn’t help, I’d recommend reaching out to support tp see of they could help out here:

👉 https://do.co/support

- Bobby

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.