mirror of
https://github.com/turbomaster95/coderrrrr.git
synced 2025-05-11 04:30:14 +00:00
inital commit
This commit is contained in:
parent
faaef129e8
commit
b5aa94309b
11
lib/firebase.ts
Normal file
11
lib/firebase.ts
Normal file
@ -0,0 +1,11 @@
|
||||
// lib/firebase.ts
|
||||
import { initializeApp, cert } from "firebase-admin/app";
|
||||
import { getFirestore } from "firebase-admin/firestore";
|
||||
|
||||
const serviceAccount = JSON.parse(process.env.FIREBASE_SERVICE_ACCOUNT_KEY!);
|
||||
|
||||
const app = initializeApp({
|
||||
credential: cert(serviceAccount),
|
||||
});
|
||||
|
||||
export const firestore = getFirestore(app);
|
@ -1,6 +1,6 @@
|
||||
import { Handler } from '@netlify/functions';
|
||||
import { firestore } from '../../../lib/firebase';
|
||||
import { fetchActorInformation } from '../../../lib/activitypub/utils/fetchActorInformation';
|
||||
import { fetchActorInformation } from '../../../lib/activitypub/utils/fetchActorInformation.ts';
|
||||
|
||||
const handler: Handler = async (event, context) => {
|
||||
const [, , username] = event.path.split('/'); // /users/:username/followers
|
||||
|
Loading…
x
Reference in New Issue
Block a user