Skip to content
This repository has been archived by the owner on Apr 6, 2021. It is now read-only.

Bytt til production versjon av Firebase SDK #148

Open
oleast opened this issue Mar 19, 2020 · 0 comments
Open

Bytt til production versjon av Firebase SDK #148

oleast opened this issue Mar 19, 2020 · 0 comments
Labels
Bug Something isn't working

Comments

@oleast
Copy link
Collaborator

oleast commented Mar 19, 2020

Beskriv hva som skjer
Vi får denne feilmeldingen i prod:

It looks like you're using the development build of the Firebase JS SDK.
When deploying Firebase apps to production, it is advisable to only import
the individual SDK components you intend to use.

For the module builds, these are available in the following manner
(replace <PACKAGE> with the name of a component - i.e. auth, database, etc):

CommonJS Modules:
const firebase = require('firebase/app');
require('firebase/<PACKAGE>');

ES Modules:
import firebase from 'firebase/app';
import 'firebase/<PACKAGE>';

Typescript:
import * as firebase from 'firebase/app';
import 'firebase/<PACKAGE>';
@oleast oleast added the Bug Something isn't working label Mar 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant