We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b27ad72 commit 261fc8dCopy full SHA for 261fc8d
.github/workflows/nextjs.yml
@@ -93,4 +93,4 @@ jobs:
93
id: deployment
94
uses: actions/deploy-pages@v2
95
env:
96
- API_AUTH_KEY: ${{ secrets.API_AUTH_KEY }}
+ API_AUTH_KEY: ${{ 'secrets.API_AUTH_KEY' }}
app/utils/getDBref.ts
@@ -3,6 +3,7 @@ import { getDatabase } from "firebase-admin/database"
3
import admin from "firebase-admin"
4
5
export async function getRef() {
6
+ console.log("process.env.API_AUTH_KEY")
7
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() })
8
if (!admin.apps.length) {
9
admin.initializeApp({
0 commit comments