404 error after deploying angular app with multiple routes

I’m testing the new feature called “apps platform” I’m using an angular project with multiple routes and parameters. I’ve been trying multiple ways to configure my app but always getting a 404 message… any ideas? it would be a best idea to create an empty droplet to manage to route manually?

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hi @IsaacFH,

There is a similar question from a user which was also using App Platform with Angular again experiencing a 404 error:

name: myapp
region: fra
  - build_command: |-
      npm install
      npm install -g @angular/cli@11.2.0
      ng build --prod
    environment_slug: node-js
      branch: master
      deploy_on_push: true
      repo: myrepo/myapp
    name: myapp
    output_dir: dist
    catchall_document: index.html
      - path: /
  • find app id by running: doctl apps list
  • update spec by runing: doctl apps update {{ap_id}} --spec app.yaml

Having said that, I’ll urge you to check out the question and the thread beneath it, it might help you further.