create-lx2-app 0.11.5-beta.a94a9aa → 0.11.5-beta.f8c5ccc

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-lx2-app",
3
- "version": "0.11.5-beta.a94a9aa",
3
+ "version": "0.11.5-beta.f8c5ccc",
4
4
  "description": "The Most Opinionated Way to Build Next.js Apps",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -4,6 +4,8 @@ import { revalidatePath } from "next/cache"
4
4
  import { auth, signIn, signOut } from "@/server/auth"
5
5
  import { db } from "@/server/db"
6
6
 
7
+ export const dynamic = "force-dynamic"
8
+
7
9
  export default async function HomePage() {
8
10
  const session = await auth()
9
11
  const user = session?.user
@@ -6,6 +6,8 @@ import { redirect } from "next/navigation"
6
6
  import { auth } from "@/server/auth"
7
7
  import { db } from "@/server/db"
8
8
 
9
+ export const dynamic = "force-dynamic"
10
+
9
11
  export default async function HomePage() {
10
12
  const session = await auth.api.getSession({
11
13
  headers: await headers(),
@@ -3,6 +3,8 @@ import { revalidatePath } from "next/cache"
3
3
 
4
4
  import { db } from "@/server/db"
5
5
 
6
+ export const dynamic = "force-dynamic"
7
+
6
8
  export default async function HomePage() {
7
9
  const posts = await db.post.findMany()
8
10
 
@@ -1,7 +1,7 @@
1
1
  import { PrismaMariaDb } from "@prisma/adapter-mariadb"
2
2
 
3
3
  import { env } from "@/env"
4
- import { PrismaClient } from "@/generated/prisma/client"
4
+ import { PrismaClient } from "@/generated/prisma"
5
5
 
6
6
  const adapter = new PrismaMariaDb(env.DATABASE_URL)
7
7
 
@@ -1,7 +1,7 @@
1
1
  import { PrismaPg } from "@prisma/adapter-pg"
2
2
 
3
3
  import { env } from "@/env"
4
- import { PrismaClient } from "@/generated/prisma/client"
4
+ import { PrismaClient } from "@/generated/prisma"
5
5
 
6
6
  const adapter = new PrismaPg({
7
7
  connectionString: env.DATABASE_URL,
@@ -1,7 +1,7 @@
1
1
  import { PrismaLibSql } from "@prisma/adapter-libsql"
2
2
 
3
3
  import { env } from "@/env"
4
- import { PrismaClient } from "@/generated/prisma/client"
4
+ import { PrismaClient } from "@/generated/prisma"
5
5
 
6
6
  const adapter = new PrismaLibSql({
7
7
  url: env.DATABASE_URL,
@@ -1,7 +1,7 @@
1
1
  import { PrismaBetterSqlite3 } from "@prisma/adapter-better-sqlite3"
2
2
 
3
3
  import { env } from "@/env"
4
- import { PrismaClient } from "@/generated/prisma/client"
4
+ import { PrismaClient } from "@/generated/prisma"
5
5
 
6
6
  const adapter = new PrismaBetterSqlite3({
7
7
  url: env.DATABASE_URL,