Skip to content

Commit

Permalink
upd thirtparty
Browse files Browse the repository at this point in the history
  • Loading branch information
JiangShuuu committed Nov 16, 2023
1 parent 971a856 commit f217495
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 6 deletions.
16 changes: 12 additions & 4 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,18 +1,26 @@
DATABASE_URL=

# https://uploadthing.com/
UPLOADTHING_SECRET=
UPLOADTHING_APP_ID=

# https://app.pinecone.io/organizations/-NijBscbfRwV4V0URFzy/projects/gcp-starter:5d72bfc/indexes
PINECONE_API_KEY=
# https://platform.openai.com/api-keys
OPENAI_API_KEY=

# https://dashboard.stripe.com/test/apikeys
# https://stripe.com/docs/testing
STRIPE_PRODUCT_ID=
STRIPE_SECRET_KEY=
STRIPE_WEBHOOK_SECRET=

GITHUB_ID=
GITHUB_SECRET=
THIRT_GITHUB_ID=
THIRT_GITHUB_SECRET=
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=

BASE_URL=
NEXTAUTH_URL=
# https://next-auth.js.org/adapters
NEXTAUTH_SECRET=
NEXTAUTH_URL=
NEXT_PUBLIC_BASE_URL=
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ jobs:
echo STRIPE_PRODUCT_ID=${{ secrets.STRIPE_PRODUCT_ID }} >> .env
echo STRIPE_SECRET_KEY=${{ secrets.STRIPE_SECRET_KEY }} >> .env
echo STRIPE_WEBHOOK_SECRET=${{ secrets.STRIPE_WEBHOOK_SECRET }} >> .env
echo THIRT_GITHUB_ID=${{ secrets.GITHUB_ID }} >> .env
echo THIRT_GITHUB_SECRET=${{ secrets.GITHUB_SECRET }} >> .env
echo THIRT_GITHUB_ID=${{ secrets.THIRT_GITHUB_ID }} >> .env
echo THIRT_GITHUB_SECRET=${{ secrets.THIRT_GITHUB_SECRET }} >> .env
echo GOOGLE_CLIENT_ID=${{ secrets.GOOGLE_CLIENT_ID }} >> .env
echo GOOGLE_CLIENT_SECRET=${{ secrets.GOOGLE_CLIENT_SECRET }} >> .env
echo NEXT_PUBLIC_BASE_URL=${{ secrets.NEXT_PUBLIC_BASE_URL }} >> .env
Expand Down
1 change: 1 addition & 0 deletions docker/dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ FROM base AS runner
WORKDIR /app

ENV NODE_ENV production
ENV NEXT_SHARP_PATH /tmp/node_modules/sharp
# Uncomment the following line in case you want to disable telemetry during runtime.
# ENV NEXT_TELEMETRY_DISABLED 1

Expand Down
5 changes: 5 additions & 0 deletions src/pages/api/auth/[...nextauth].ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ export const authOptions: AuthOptions = {
throw new Error('Invalid credentials')
}

console.log('ENV_TEST_GIT', process.env.THIRT_GITHUB_ID)
console.log('ENV_TEST_GIT', process.env.THIRT_GITHUB_SECRET)
console.log('ENV_TEST_GOOGLE', process.env.GOOGLE_CLIENT_ID)
console.log('ENV_TEST_GOOGLE', process.env.GOOGLE_CLIENT_SECRET)

const user = await db.user.findUnique({
where: {
email: credentials.email
Expand Down

0 comments on commit f217495

Please sign in to comment.