Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: .env.local variables a/c to the code variables. #6

Closed

Conversation

theterrificm
Copy link

The coding variables inside the files aren't aligned with the variables in the .env.local file. Hence anyone especially if any beginner tries to setup the application, they willl face this error being unable to run their app as thses variables aren't the same.

Therefore, I've updated the variables in the .env.local files according to the variables requirements from the files.

In app/auth.js:

GitHubProvider({
      clientId: process.env.GITHUB_ID, # GITHUB_CLIENT_ID in readme.md
      clientSecret: process.env.GITHUB_SECRET, # GITHUB_CLIENT_SECRET in readme.md
      authorization: {
        params: {
          prompt: "consent",
          access_type: "offline",
          response_type: "code",
          scope: "read:user",
        },
      },
    }),
  ],

In app/lib/db.js:

const MONGODB_URI = process.env.MONGO_URI //MONGODB_URI in readme

I've fixed it now and requested a PR as well. Hopefully, it will get merged.

Regards

Copy link

vercel bot commented Oct 22, 2024

@theterrificm is attempting to deploy a commit to the Ahsan khalid's projects Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉 Boom! Your pull request just flew into the SkillSync HQ. High fives all around! Our team of tech wizards will check it out and get back to you faster than you can say 'code ninja!' Thanks for leveling up the project!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants