File tree 4 files changed +3
-42
lines changed
4 files changed +3
-42
lines changed Original file line number Diff line number Diff line change 2
2
* Run `build` or `dev` with `SKIP_ENV_VALIDATION` to skip env validation. This is especially useful
3
3
* for Docker builds.
4
4
*/
5
- import "./src/env.js " ;
5
+ import "./src/env.mjs " ;
6
6
7
7
/** @type {import("next").NextConfig } */
8
8
const config = { } ;
Original file line number Diff line number Diff line change 1
1
import { NextResponse } from "next/server" ;
2
2
import { fetchRepoCommits , EnrichedCommit } from "../../../lib/github" ;
3
- import { env } from "../../../env" ;
3
+ import { env } from "../../../env.mjs"
4
4
5
5
const BATCH_SIZE = 3 ; // Number of repos to process in parallel
6
6
const RATE_LIMIT_DELAY = 1000 ; // 1 second delay between batches
@@ -57,6 +57,7 @@ export async function GET(request: Request) {
57
57
try {
58
58
for ( let i = 0 ; i < repos . length ; i += BATCH_SIZE ) {
59
59
const batch = repos . slice ( i , i + BATCH_SIZE ) ;
60
+ console . log ( env . GITHUB_TOKEN )
60
61
const batchPromises = batch . map ( ( repo : string ) =>
61
62
fetchRepoCommits ( repo , env . GITHUB_TOKEN , startDate )
62
63
) ;
Load Diff This file was deleted.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments