Leon4gr45 commited on
Commit
8719fc5
·
verified ·
1 Parent(s): c52cc9e

Fix: Define githubToken before use

Browse files
Files changed (1) hide show
  1. app/api/github-upload/route.ts +1 -0
app/api/github-upload/route.ts CHANGED
@@ -5,6 +5,7 @@ import path from 'path';
5
 
6
  export async function POST(req: NextRequest) {
7
  const { repo, branch } = await req.json();
 
8
  const blabladorApiKey = process.env.BLABLADOR_API_KEY;
9
 
10
  if (!githubToken) {
 
5
 
6
  export async function POST(req: NextRequest) {
7
  const { repo, branch } = await req.json();
8
+ const githubToken = process.env.GITHUB_TOKEN;
9
  const blabladorApiKey = process.env.BLABLADOR_API_KEY;
10
 
11
  if (!githubToken) {