![]() This command will push our schema to Railway and generate type definitions for the Prisma client. Let's push this schema to our Railway Postgres database. All the models you see in the schema are necessary for Next Auth to work. Let's also change the database to postgresql and uncomment the annotations in the Account model in prisma/schema.prisma. Now we have all of our environment variables configured. Uncomment NEXTAUTH_SECRET and set it as some random string too. For localhost the callback URL is I also added the production URL ahead of time.Ĭopy the client ID and secret and paste both of them into. Go to OAuth2/General and add all of the callback URLs to Redirects. Go to the Discord Developers Portal and create a new application. You'll notice we have Discord OAuth set up using next-auth, so we also need a DISCORD_CLIENT_ID and DISCORD_CLIENT_SECRET. env file and paste the connection string in DATABASE_URL. env.example file and rename the new copy as.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |