Skip to content

Commit 261fc8d

Browse files
_
1 parent b27ad72 commit 261fc8d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/nextjs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,4 +93,4 @@ jobs:
9393
id: deployment
9494
uses: actions/deploy-pages@v2
9595
env:
96-
API_AUTH_KEY: ${{ secrets.API_AUTH_KEY }}
96+
API_AUTH_KEY: ${{ 'secrets.API_AUTH_KEY' }}

app/utils/getDBref.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { getDatabase } from "firebase-admin/database"
33
import admin from "firebase-admin"
44

55
export async function getRef() {
6+
console.log("process.env.API_AUTH_KEY")
67
var fet = await fetch("https://portfolio-api-backend.vercel.app/server/api/getDB",{headers: {auth : process.env.API_AUTH_KEY as string}}).then(async (res) => { return await res.json() })
78
if (!admin.apps.length) {
89
admin.initializeApp({

0 commit comments

Comments
 (0)