1

I have an angular application. I am hoisting it on the S3 bucket. I have specified the index and error document properly.

enter image description here

In the cloud front configurations, I have specified the error pages respectively.

enter image description here

My application is working error free, But I see the error printing in the browser console in production.

enter image description here

How do I resolve this ??? I am open to all solutions, Please guide me.

LJR
  • 151
  • 10
  • Possible dupicate of [404 error on reloading angular project when deployed on aws s3](https://stackoverflow.com/a/63019400/2435473) – Pankaj Parkar Aug 16 '22 at 05:12

1 Answers1

1

Add RouterModule.forRoot(routes, { useHash: true }) in the app-routing module file. This will display a # in the route in the browser but resolved your issue.

Rajesh Lohith
  • 426
  • 3
  • 10