Skip to content

Commit b1ff273

Browse files
committed
use bracket notation
1 parent 479a513 commit b1ff273

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/app/api/report-issue/route.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ export async function POST(request: NextRequest) {
1212
);
1313
}
1414

15-
const githubToken = process.env.GITHUB_PAT;
16-
const githubOwner = process.env.GITHUB_OWNER || 'victorhuangwq';
17-
const githubRepo = process.env.GITHUB_REPO || 'story-to-manga';
15+
const githubToken = process.env['GITHUB_PAT'];
16+
const githubOwner = process.env['GITHUB_OWNER'] || 'victorhuangwq';
17+
const githubRepo = process.env['GITHUB_REPO'] || 'story-to-manga';
1818

1919
if (!githubToken) {
2020
console.error('GitHub PAT not configured');

0 commit comments

Comments
 (0)