Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

init

Max Deichmann47617a25906b
diff --git a/.env.example b/.env.example
index c1464a2faf..040f4d59b8 100644
--- a/.env.example
+++ b/.env.example
@@ -1,17 +1,10 @@
-# Since the ".env" file is gitignored, you can use the ".env.example" file to
-# build a new ".env" file when you clone the repo. Keep this file up-to-date
-# when you add new variables to `.env`.
-
-# This file will be committed to version control, so make sure not to have any
-# secrets in it. If you are cloning this repo, create a copy of this file named
-# ".env" and populate it with your secrets.
-
# When adding additional environment variables, the schema in "/src/env.mjs"
# should be updated accordingly.
# Prisma
# https://www.prisma.io/docs/reference/database-reference/connection-urls#env
-DATABASE_URL="file:./db.sqlite"
+DIRECT_URL="postgresql://postgres:postgres@localhost:5432/postgres"
+DATABASE_URL="postgresql://postgres:postgres@localhost:5432/postgres"
# Next Auth
# You can generate a new secret on the command line with:
@@ -19,7 +12,3 @@ DATABASE_URL="file:./db.sqlite"
# https://next-auth.js.org/configuration/options#secret
# NEXTAUTH_SECRET=""
NEXTAUTH_URL="http://localhost:3000"
-
-# Next Auth Discord Provider
-DISCORD_CLIENT_ID=""
-DISCORD_CLIENT_SECRET=""
diff --git a/src/env.mjs b/src/env.mjs
index 79f915db2c..eade2eb109 100644
--- a/src/env.mjs
+++ b/src/env.mjs
@@ -21,8 +21,6 @@ export const env = createEnv({
process.env.VERCEL ? z.string().min(1) : z.string().url(),
),
// Add `.min(1) on ID and SECRET if you want to make sure they're not empty
- DISCORD_CLIENT_ID: z.string(),
- DISCORD_CLIENT_SECRET: z.string(),
},
/**
@@ -42,8 +40,6 @@ export const env = createEnv({
DATABASE_URL: process.env.DATABASE_URL,
NODE_ENV: process.env.NODE_ENV,
NEXTAUTH_SECRET: process.env.NEXTAUTH_SECRET,
- NEXTAUTH_URL: process.env.NEXTAUTH_URL,
- DISCORD_CLIENT_ID: process.env.DISCORD_CLIENT_ID,
- DISCORD_CLIENT_SECRET: process.env.DISCORD_CLIENT_SECRET,
+ NEXTAUTH_URL: process.env.NEXTAUTH_URL
},
});
diff --git a/src/server/auth.ts b/src/server/auth.ts
index ed57078bfc..ec41316eff 100644
--- a/src/server/auth.ts
+++ b/src/server/auth.ts
@@ -4,9 +4,7 @@ import {
type NextAuthOptions,
type DefaultSession,
} from "next-auth";
-import DiscordProvider from "next-auth/providers/discord";
import { PrismaAdapter } from "@next-auth/prisma-adapter";
-import { env } from "~/env.mjs";
import { prisma } from "~/server/db";
/**
@@ -47,10 +45,6 @@ export const authOptions: NextAuthOptions = {
},
adapter: PrismaAdapter(prisma),
providers: [
- DiscordProvider({
- clientId: env.DISCORD_CLIENT_ID,
- clientSecret: env.DISCORD_CLIENT_SECRET,
- }),
/**
* ...add more providers here.
*