Skip to content

Commit

Permalink
fix the db issues
Browse files Browse the repository at this point in the history
  • Loading branch information
d-ivashchuk committed Mar 28, 2024
1 parent eed670d commit 2f941cc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 3 additions & 2 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ generator client {
}

datasource db {
provider = "postgresql"
provider = "postgresql"
// NOTE: When using mysql or sqlserver, uncomment the @db.Text annotations in model Account below
// 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("POSTGRES_PRISMA_URL") // uses connection pooling
directUrl = env("POSTGRES_URL_NON_POOLING") // uses a direct connection
}

enum Role {
Expand Down
5 changes: 4 additions & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { Inter } from "next/font/google";

import { Layout } from "~/components/patterns/layout";
import Providers from "~/components/providers";
import { Suspense } from "react";

const inter = Inter({
subsets: ["latin"],
Expand All @@ -27,7 +28,9 @@ export default function RootLayout({
<html lang="en">
<body className={`font-sans ${inter.variable}`}>
<Providers>
<Layout>{children}</Layout>
<Suspense>
<Layout>{children}</Layout>
</Suspense>
</Providers>
</body>
</html>
Expand Down

0 comments on commit 2f941cc

Please sign in to comment.