Skip to content

Commit

Permalink
Rerun Prisma migration
Browse files Browse the repository at this point in the history
- Supabase writes for auth actions is now functioning
  • Loading branch information
mshumayl committed Mar 7, 2023
1 parent c964b27 commit cc009a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ datasource db {
// Further reading:
// https://next-auth.js.org/adapters/prisma#create-the-prisma-schema
// https://www.prisma.io/docs/reference/api-reference/prisma-schema-reference#string
url = env("DATABASE_URL")
url = env("DATABASE_URL")
directUrl = env("DATABASE_DIRECT_URL")
}

model Example {
Expand Down
2 changes: 2 additions & 0 deletions src/env.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { z } from "zod";
*/
const server = z.object({
DATABASE_URL: z.string().url(),
DATABASE_DIRECT_URL: z.string().url(),
NODE_ENV: z.enum(["development", "test", "production"]),
NEXTAUTH_SECRET:
process.env.NODE_ENV === "production"
Expand Down Expand Up @@ -41,6 +42,7 @@ const client = z.object({
*/
const processEnv = {
DATABASE_URL: process.env.DATABASE_URL,
DATABASE_DIRECT_URL: process.env.DATABASE_DIRECT_URL,
NODE_ENV: process.env.NODE_ENV,
NEXTAUTH_SECRET: process.env.NEXTAUTH_SECRET,
NEXTAUTH_URL: process.env.NEXTAUTH_URL,
Expand Down

0 comments on commit cc009a7

Please sign in to comment.