Home > Net >  Twilio push notifications with firebase error: unsupported MIME type ('text/html')
Twilio push notifications with firebase error: unsupported MIME type ('text/html')

Time:03-08

I am trying to integrate firebase with twilio for push notifications.

First of all I followed enter image description here

I am using next.js with typescript.

Do you have any suggestion on how to fix this?

CodePudding user response:

In next.js static files are served from the public directory. The Firebase docs direct you to add the firebase-messaging-sw.js file to the root of your domain, so you should add that file in the public directory.

  • Related