Skip to content

Commit

Permalink
squashhhhed
Browse files Browse the repository at this point in the history
  • Loading branch information
chen-rn committed Jul 30, 2024
1 parent 5fbb168 commit c7cf173
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,5 @@ jspm_packages/


.vercel

service-account.json
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,12 @@
dub dub dubbbbb
dub dub dubbbbb!!!

still working on this README
dubbie.com for more info

join discord [here](https://discord.gg/qJNV93PY2e)

the project is usable with a few known bugs and concerns
1. sometimes there's a race condition that occurs when regenerating audio and moving segment that causes next app to crash
2. sometimes regenerated audio does not immediately sound good in preview
3. sometimes demucs(background audio extraction) crashes
4. backend is not scalable, and does not have a queue rn, so if too many people initializes then it'll likely go OOM.
8 changes: 5 additions & 3 deletions packages/shared/clients/firebaseAdmin.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import admin from "firebase-admin";

import * as serviceAccount from "./service-account.json";

if (!admin.apps.length) {
// Check if there are no initialized apps
admin.initializeApp({
credential: admin.credential.cert(serviceAccount as admin.ServiceAccount),
credential: admin.credential.cert({
projectId: process.env.FIREBASE_PROJECT_ID,
clientEmail: process.env.FIREBASE_CLIENT_EMAIL,
privateKey: process.env.FIREBASE_PRIVATE_KEY?.replace(/\\n/g, "\n"),
}),
storageBucket: "dubbie-studio.appspot.com",
});
}
Expand Down
4 changes: 2 additions & 2 deletions packages/shared/clients/service-account.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"type": "service_account",
"project_id": "dubbie-studio",
"private_key_id": "4a1d8d9f8498f8dbd2847dc90611ec4dd7851314",
"private_key": "-----BEGIN PRIVATE KEY-----\nMIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQClRszNNn0Xt/UO\nar3UwPADVFaIO7LvF+pddyBQnJyZJx3N3sZc+N3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ZUiVF\nDSNm0cTYZ+dCufqxLP9CVOP11HbzRq46H6/dKjQA8yYoTx0munk/PWniSwLi74Hq\nNKlJ09bVwn5sFFMjm67pSoLmRvl1Nu7IfXTUU0AKKzghWNw9Z556FCfRAoGBAJCb\nEO7R4r96RztUqnX85lghJGNGjpStpqAwPzgBfJeHH71fsOFMhM6KTVU3N7NyTS4d\nN+jQzS+2BVbwbm4E8l+mp4rZuXi9GBBv892YaDZPcIwO07AL2bUIMEVHgg5pEa/D\nb2BBlyWU0ExgqIRNayPNEr7jqLTbRx1R9+y2kLINAoGAUTrTLOhN01Iax8STPga5\nYpvkNEfHvYgrfghWJdUVWlhuK8L+VLLmJ58S40PFfEsat849b0wZso1awqxUrLTw\nOaRDTvuqIDGhAseYy6VcCPWY10gY4P/chtAmRzJvwuNOwLIL4MBGGxMU+EKWULKZ\ntiDlkgEtbDPcfxssZHXTf5Y=\n-----END PRIVATE KEY-----\n",
"private_key_id": "7c33a399bcb3bf11000abed3e19ab87d93541a7d",
"private_key": "-----BEGIN PRIVATE KEY-----\nMIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDSDuttTMc/OqQ2\nC6faQIhfvMNThhg1YM2TT0uzm8dHz25jbxzVGaldRd2elmFl6REkgD2eBa49+eXh\nFlwo7OCjKPED87A53jweju7f5vUo385ILv5a0OMxKJInqu1FpzLk7JTZXvTaAp+3\n0EeIPaT0tSdZK+p+vydKL2QcJsJhv5etu4UiZ/+ukACpFlBiTRoJh6R9vlw0E9v4\nYWFVpXTBGhO9bWiFp1NL8ZNazrLqFt2KwbxiPysWREjmS25eZviH0CsknlaaB5Cb\nAW+lWOP7x1U4/U8VOsZuTdpusqxe6Jak4L9RrYuHvjSzcQcGwwiHpqUu7nmIY8c6\nyzyf7mcXAgMBAAECggEAIHPXoXpEKhuYNRVV6F0h9JCIKMZFxTFgcUrF6ki93/VH\nG6uV68JcLSHXHGIlSAZa9KWvX1OHWOHbxwuaT2RRTEPOAItM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\n64V5sdyPdaV2TxuoNRZ3LIunHF7IkurpikfM88dNoIEDqvswubY+X1n7Uhw1wha8\nRztYAH3ngxstjxVmvLRV8aQ=\n-----END PRIVATE KEY-----\n",
"client_email": "firebase-adminsdk-rcap7@dubbie-studio.iam.gserviceaccount.com",
"client_id": "118392712391179635991",
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
Expand Down

0 comments on commit c7cf173

Please sign in to comment.