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 +1 -1
- package/template/packages/src/app/page/with-authjs-prisma.tsx +2 -0
- package/template/packages/src/app/page/with-better-auth-prisma.tsx +2 -0
- package/template/packages/src/app/page/with-prisma.tsx +2 -0
- package/template/packages/src/server/db/prisma/with-mysql.ts +1 -1
- package/template/packages/src/server/db/prisma/with-postgresql.ts +1 -1
- package/template/packages/src/server/db/prisma/with-sqlite-bun.ts +1 -1
- package/template/packages/src/server/db/prisma/with-sqlite.ts +1 -1
package/package.json
CHANGED
|
@@ -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(),
|
|
@@ -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
|
|
4
|
+
import { PrismaClient } from "@/generated/prisma"
|
|
5
5
|
|
|
6
6
|
const adapter = new PrismaBetterSqlite3({
|
|
7
7
|
url: env.DATABASE_URL,
|