mirror of
https://github.com/minibits-cash/minibits_wallet.git
synced 2026-07-22 07:48:28 +00:00
37 lines
1.2 KiB
TypeScript
37 lines
1.2 KiB
TypeScript
import { bare } from "@hot-updater/bare";
|
|
import { withSentry } from "@hot-updater/sentry-plugin";
|
|
import { firebaseDatabase, firebaseStorage } from "@hot-updater/firebase";
|
|
import * as admin from "firebase-admin";
|
|
import { config } from "dotenv";
|
|
import { defineConfig } from "hot-updater";
|
|
|
|
config({ path: ".env" });
|
|
|
|
// 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(
|
|
bare({
|
|
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,
|
|
}),
|
|
updateStrategy: "fingerprint",
|
|
}); |