I use Firebase to send push notifications to my Angular app.
I do it following this tutorial:
and all works ok when I try it in localhost.
The problem is when I deploy it because I do it in a folder, but the service worker is still search in the root and then is not found.
I deploy with this command:
ng build --prod --base-href /myfolder/
And then the service worker is in:
But the app still search for it in
How can I say search it in myfolder?
I see some similar question here:
But I don't have this firebase.json... I suppouse is because is an Angular app.
Hope someone can help me.
Thanks in advance