mirror of
https://github.com/minibits-cash/minibits_wallet.git
synced 2026-10-05 19:28:26 +00:00
34 lines
1.2 KiB
TypeScript
34 lines
1.2 KiB
TypeScript
import { metro } from '@hot-updater/metro';
|
|
import { withSentry } from "@hot-updater/sentry-plugin";
|
|
import {firebaseStorage, firebaseDatabase} from '@hot-updater/firebase';
|
|
import * as admin from 'firebase-admin';
|
|
import { defineConfig } from 'hot-updater';
|
|
import 'dotenv/config';
|
|
|
|
// https://firebase.google.com/docs/admin/setup?hl=en#initialize_the_sdk_in_non-google_environments
|
|
// Check your .env file and add the credentials
|
|
// Set the GOOGLE_APPLICATION_CREDENTIALS environment variable to your credentials file path
|
|
// Example: GOOGLE_APPLICATION_CREDENTIALS=./firebase-adminsdk-credentials.json
|
|
const credential = admin.credential.applicationDefault();
|
|
|
|
export default defineConfig({
|
|
build: withSentry(
|
|
metro({
|
|
enableHermes: true,
|
|
sourcemap: true
|
|
}),
|
|
{
|
|
org: process.env.SENTRY_ORG,
|
|
project: process.env.SENTRY_PROJECT,
|
|
authToken: process.env.SENTRY_AUTH_TOKEN!,
|
|
}),
|
|
storage: firebaseStorage({
|
|
projectId: process.env.HOT_UPDATER_FIREBASE_PROJECT_ID!,
|
|
storageBucket: process.env.HOT_UPDATER_FIREBASE_STORAGE_BUCKET!,
|
|
credential,
|
|
}),
|
|
database: firebaseDatabase({
|
|
projectId: process.env.HOT_UPDATER_FIREBASE_PROJECT_ID!,
|
|
credential,
|
|
}),
|
|
}); |