I am trying to integrate firebase with twilio for push notifications.
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.