Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion env.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# GitHub API Configuration
REPO_TOKEN=
GITHUB_TOKEN=
GITHUB_APP_ID=
GITHUB_APP_PRIVATE_KEY=
GITHUB_CLINET_ID=
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": true,
"scripts": {
"dev": "next dev --turbopack",
"build": "next build",
"build": "prisma generate && next build ",
"start": "next start",
"lint": "next lint"
},
Expand Down
1 change: 0 additions & 1 deletion prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

generator client {
provider = "prisma-client-js"
output = "../src/generated/prisma"
}

datasource db {
Expand Down
2 changes: 1 addition & 1 deletion src/app/docs/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ pnpm install`}</code>
Create a .env.local file with your GitHub token:
</p>
<pre className="bg-muted p-3 rounded-md overflow-x-auto">
<code>{`REPO_TOKEN=your_github_personal_access_token_here
<code>{`GITHUB_TOKEN=your_github_personal_access_token_here
NEXT_PUBLIC_APP_NAME=GitIntel`}</code>
</pre>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/lib/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ export const authOptions: NextAuthOptions = {
clientSecret: process.env.GOOGLE_CLIENT_SECRET!,
}),
GitHubProvider({
clientId: process.env.REPO_CLIENT_ID!,
clientSecret: process.env.REPO_CLIENT_SECRET!,
clientId: process.env.GITHUB_CLIENT_ID!,
clientSecret: process.env.GITHUB_CLIENT_SECRET!,
}),
CredentialsProvider({
name: 'credentials',
Expand Down
3 changes: 1 addition & 2 deletions src/lib/db.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { PrismaClient } from '../generated/prisma'

import { PrismaClient } from '@prisma/client';
const globalForPrisma = globalThis as unknown as {
prisma: PrismaClient | undefined
}
Expand Down
4 changes: 2 additions & 2 deletions src/lib/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import { GitHubRepositoryResponse, GitHubSearchResponse } from './github-types';

// Initialize GitHub API clients lazily
function getGitHubToken() {
const githubToken = process.env.REPO_TOKEN;
const githubToken = process.env.GITHUB_TOKEN;
if (!githubToken) {
throw new Error('REPO_TOKEN environment variable is required');
throw new Error('GITHUB_TOKEN environment variable is required');
}
return githubToken;
}
Expand Down
Loading