- Create a new Firebase app
- Enter a name of the app
- Click on “Add firebase to your web app”
- Copy the config and save as an ENV variables
- Go to “Authentication / Sign-in method”
- Enable “Email/Password”
- Enable “Google Authentication”
- Go to “Firestore Database”
- Click on “Create database”
- Start in “production mode”
- Choose “eur3” as a location
- choose firebase project by typing "firebase use 'project-id'"
- type “firebase deploy --only firestore:rules”
- Go to “Firestore Database/Rules”
- Check if deployed
- type “firebase deploy --only firestore:indexes”
- Go to “Firestore Database / Indexes”
- Check if deployed
- Go to “Authentication / Settings / Authorised domains”
- Add a new authorised domain
These variables come from firebase config.
- NEXT_PUBLIC_API_KEY
- NEXT_PUBLIC_AUTH_DOMAIN
- NEXT_PUBLIC_PROJECT_ID
- NEXT_PUBLIC_STORAGE_BUCKET
- NEXT_PUBLIC_MESSAGING_SENDER_ID
- NEXT_PUBLIC_APP_ID
Logging errors with Sentry.
- NEXT_PUBLIC_SENTRY_DSN
The app uses Cloudflare Web Analytics for analytics purposes. Analytics are active only if a beacon token is provided.
- NEXT_PUBLIC_ANALYTICS
There's a special variable that determines if given instance works on test or prod environment. If it's prod environment the variable below should have true value, otherwise no value should be provided.
- NEXT_PUBLIC_IS_PROD