Server Error... #4576
Unanswered
mikemagruder
asked this question in
Help
Server Error...
#4576
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am building an Amazon clone site using Google authentication with NextAuth. I have set up my [...nextauth].js file to process the Google ID and Secret like so:
import NextAuth from "next-auth"
import GoogleProvider from "next-auth/providers/google"
export default NextAuth({
providers: [
GoogleProvider({
clientId: process.env.GOOGLE_ID,
clientSecret: process.env.GOOGLE_SECRET
}),
],
})
It works on localhost just fine, but when I deploy to Vercel, I'm getting an error. I have set up my Google ID/Secret env variables on Vercel to the same as localhost, and I have changed the NEXTAUTH_URL on Vercel to point to the Vercel hosting site, but alas, it doesn't work.
Any suggestions would be appreciated!
Beta Was this translation helpful? Give feedback.
All reactions