Skip to content

Commit

Permalink
Switch from clerk to next-auth
Browse files Browse the repository at this point in the history
  • Loading branch information
aberonni committed Jan 11, 2024
1 parent 495e9dc commit 0a1db3b
Show file tree
Hide file tree
Showing 15 changed files with 393 additions and 596 deletions.
18 changes: 14 additions & 4 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,19 @@

# Prisma
# https://www.prisma.io/docs/reference/database-reference/connection-urls#env
DATABASE_URL="file:./db.sqlite"
# Get from clerk.dev dashboard
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=XXXXXXXXXXXXXX
CLERK_SECRET_KEY=XXXXXXXXXXXXXX
DATABASE_URL="MYSQL_URL"

# Next Auth
# You can generate a new secret on the command line with:
# openssl rand -base64 32
# https://next-auth.js.org/configuration/options#secret
NEXTAUTH_SECRET="This is an example"
NEXTAUTH_URL="http://localhost:3000"

# Get from Google Cloud Console
GOOGLE_CLIENT_ID="XXXXX"
GOOGLE_CLIENT_SECRET="XXXXX"

# Get from upstash.com dashboard
UPSTASH_REDIS_REST_URL="URL"
UPSTASH_REDIS_REST_TOKEN="TOKEN"
9 changes: 8 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,14 @@ await import("./src/env.js");
/** @type {import("next").NextConfig} */
const config = {
reactStrictMode: true,

images: {
remotePatterns: [
{
protocol: "https",
hostname: "lh3.googleusercontent.com",
},
],
},
/**
* If you are using `appDir` then you must comment the below `i18n` config out.
*
Expand Down
Loading

0 comments on commit 0a1db3b

Please sign in to comment.