Skip to content

Commit b310e5c

Browse files
committed
fix env
1 parent 7e0ac58 commit b310e5c

File tree

4 files changed

+3
-42
lines changed

4 files changed

+3
-42
lines changed

next.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Run `build` or `dev` with `SKIP_ENV_VALIDATION` to skip env validation. This is especially useful
33
* for Docker builds.
44
*/
5-
import "./src/env.js";
5+
import "./src/env.mjs";
66

77
/** @type {import("next").NextConfig} */
88
const config = {};

src/app/api/commits/route.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { NextResponse } from "next/server";
22
import { fetchRepoCommits, EnrichedCommit } from "../../../lib/github";
3-
import { env } from "../../../env";
3+
import { env } from "../../../env.mjs"
44

55
const BATCH_SIZE = 3; // Number of repos to process in parallel
66
const RATE_LIMIT_DELAY = 1000; // 1 second delay between batches
@@ -57,6 +57,7 @@ export async function GET(request: Request) {
5757
try {
5858
for (let i = 0; i < repos.length; i += BATCH_SIZE) {
5959
const batch = repos.slice(i, i + BATCH_SIZE);
60+
console.log(env.GITHUB_TOKEN)
6061
const batchPromises = batch.map((repo: string) =>
6162
fetchRepoCommits(repo, env.GITHUB_TOKEN, startDate)
6263
);

src/env.js

-40
This file was deleted.

src/env.ts src/env.mjs

File renamed without changes.

0 commit comments

Comments
 (0)