create-lx2-app 0.11.5-beta.a94a9aa → 0.11.5-beta.b3548e3
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/dist/index.js +28 -26
- package/package.json +3 -1
- package/template/packages/config/biome.jsonc +46 -9
- package/template/packages/config/tsconfig/base.json +8 -2
- package/template/packages/config/tsconfig/with-payload.json +8 -2
- package/template/packages/src/app/api/trpc/[trpc]/route.ts +34 -0
- package/template/packages/src/app/layout/with-trpc.tsx +37 -0
- package/template/packages/src/app/page/base.tsx +4 -1
- package/template/packages/src/app/page/with-authjs-drizzle.tsx +4 -1
- package/template/packages/src/app/page/with-authjs-prisma.tsx +10 -1
- package/template/packages/src/app/page/with-authjs.tsx +4 -1
- package/template/packages/src/app/page/with-better-auth-drizzle.tsx +4 -1
- package/template/packages/src/app/page/with-better-auth-prisma.tsx +10 -1
- package/template/packages/src/app/page/with-better-auth.tsx +4 -1
- package/template/packages/src/app/page/with-drizzle.tsx +4 -1
- package/template/packages/src/app/page/with-payload.tsx +4 -1
- package/template/packages/src/app/page/with-prisma.tsx +10 -1
- package/template/packages/src/app/page/with-trpc.tsx +118 -0
- package/template/packages/src/components/greeting.tsx +21 -0
- package/template/packages/src/env/with-better-auth-db.js +2 -2
- package/template/packages/src/env/with-better-auth.js +2 -2
- package/template/packages/src/env/with-trpc-authjs-db.js +55 -0
- package/template/packages/src/env/with-trpc-authjs.js +53 -0
- package/template/packages/src/env/with-trpc-better-auth-db.js +52 -0
- package/template/packages/src/env/with-trpc-better-auth.js +50 -0
- package/template/packages/src/env/with-trpc-db.js +46 -0
- package/template/packages/src/env/with-trpc.js +44 -0
- package/template/packages/src/lib/api/client.tsx +85 -0
- package/template/packages/src/lib/api/query-client.ts +22 -0
- package/template/packages/src/lib/api/server.ts +31 -0
- package/template/packages/src/lib/auth/better-auth-client.ts +1 -1
- package/template/packages/src/lib/utils.ts +7 -0
- package/template/packages/src/server/api/init/base.ts +103 -0
- package/template/packages/src/server/api/init/with-authjs-db.ts +132 -0
- package/template/packages/src/server/api/init/with-authjs.ts +130 -0
- package/template/packages/src/server/api/init/with-betterauth-db.ts +134 -0
- package/template/packages/src/server/api/init/with-betterauth.ts +132 -0
- package/template/packages/src/server/api/init/with-db.ts +106 -0
- package/template/packages/src/server/api/root.ts +23 -0
- package/template/packages/src/server/api/routers/post/base.ts +46 -0
- package/template/packages/src/server/api/routers/post/with-auth-drizzle.ts +44 -0
- package/template/packages/src/server/api/routers/post/with-auth-prisma.ts +47 -0
- package/template/packages/src/server/api/routers/post/with-auth.ts +43 -0
- package/template/packages/src/server/api/routers/post/with-drizzle.ts +36 -0
- package/template/packages/src/server/api/routers/post/with-prisma.ts +37 -0
- package/template/packages/src/server/auth/better-auth-with-drizzle.ts +1 -1
- package/template/packages/src/server/auth/better-auth-with-prisma.ts +1 -1
- package/template/packages/src/server/auth/better-auth.ts +1 -0
- package/template/packages/src/server/auth/config/authjs-with-drizzle.ts +1 -1
- package/template/packages/src/server/auth/config/authjs-with-prisma.ts +1 -1
- package/template/packages/src/server/auth/config/authjs.ts +1 -1
- 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/template/packages/src/server/db/schema-drizzle/with-authjs-mysql.ts +1 -1
- package/template/packages/src/server/db/schema-drizzle/with-authjs-postgresql.ts +1 -1
- package/template/packages/src/server/db/schema-drizzle/with-authjs-sqlite.ts +1 -1
|
@@ -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,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
import { sql } from "drizzle-orm"
|
|
5
5
|
import { index, mysqlTableCreator, primaryKey } from "drizzle-orm/mysql-core"
|
|
6
|
-
import {
|
|
6
|
+
import type { AdapterAccountType } from "next-auth/adapters"
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Below is an example of how to create a table with a prefix.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
import { sql } from "drizzle-orm"
|
|
5
5
|
import { index, pgTableCreator, primaryKey } from "drizzle-orm/pg-core"
|
|
6
|
-
import { AdapterAccountType } from "next-auth/adapters"
|
|
6
|
+
import type { AdapterAccountType } from "next-auth/adapters"
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Below is an example of how to create a table with a prefix.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
import { sql } from "drizzle-orm"
|
|
5
5
|
import { index, primaryKey, sqliteTableCreator } from "drizzle-orm/sqlite-core"
|
|
6
|
-
import {
|
|
6
|
+
import type { AdapterAccountType } from "next-auth/adapters"
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Below is an example of how to create a table with a prefix.
|