Skip to content

Commit

Permalink
fix env files
Browse files Browse the repository at this point in the history
  • Loading branch information
aliamerj committed Mar 9, 2024
1 parent dfc9946 commit b88f17a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
name: ci

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions app/api/auth/[...nextauth]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ export const authOptions: NextAuthOptions = {
},
}),
GithubProvider({
clientId: env.GITHUB_ID!,
clientSecret: env.GITHUB_SECRET!,
clientId: env.AUTH_GITHUB_ID!,
clientSecret: env.AUTH_GITHUB_SECRET!,
profile(profile: GithubProfile) {
console.log({profile})
return {
Expand Down
10 changes: 5 additions & 5 deletions utils/aws/s3_bucket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import {
} from "@aws-sdk/client-s3";

export const s3 = new S3Client({
region: process.env.AWS_S3_REGIN!,
region: process.env.S3_REGIN!,
credentials: {
accessKeyId: process.env.AWS_IAM_KEY!,
secretAccessKey: process.env.AWS_IAM_SECRET!,
accessKeyId: process.env.IAM_KEY!,
secretAccessKey: process.env.IAM_SECRET!,
},
});

Expand All @@ -19,7 +19,7 @@ export const uploadProjectLogo = (
userId: string,
) =>
new PutObjectCommand({
Bucket: process.env.AWS_S3_NAME!,
Bucket: process.env.S3_NAME!,
ContentType: fileType,
ContentLength: size,
Key: logoName,
Expand All @@ -29,6 +29,6 @@ export const uploadProjectLogo = (
});
export const deleteProjectLogo = (logoName: string) =>
new DeleteObjectCommand({
Bucket: process.env.AWS_S3_NAME!,
Bucket: process.env.S3_NAME!,
Key: logoName,
});

0 comments on commit b88f17a

Please sign in to comment.