Skip to content

Commit 249d980

Browse files
committed
fix: Encoding of private key of env variables
1 parent 680c7c4 commit 249d980

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/changelog/%5Fadmin/upload/route.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const handler = async function handler(req: NextRequest) {
2323
projectId: process.env.GOOGLE_PROJECT_ID,
2424
credentials: {
2525
client_email: process.env.GOOGLE_CLIENT_EMAIL,
26-
private_key: process.env.GOOGLE_PRIVATE_KEY,
26+
private_key: `${process.env.GOOGLE_PRIVATE_KEY}`.split(String.raw`\n`).join('\n'),
2727
},
2828
});
2929
const bucket = storage.bucket(`${process.env.GOOGLE_BUCKET_NAME}`);

0 commit comments

Comments
 (0)