Skip to content

nextjs-end breaks on refreshing the page due to auth-service-worker error #294

Closed
@Hr1t1k

Description

@Hr1t1k

I cloned the nextjs-end locally and followed all the steps mentioned correctly also set up firebase hosting , Everything works correctly when the website is opened for the 1st time .

When the website is refreshed after some time it throws an error

Uncaught (in promise) FirebaseError: Firebase: Need to provide options, when not being deployed to hosting via source. (app/no-options).
at initializeApp (auth-service-worker.js?firebaseConfig=%7B%22apiKey%22%3A%22AIzaSy....

But when I unregister the service worker by going on application tab in dev tools , then it works fine for some time ,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions