create-better-t-stack 2.47.1 → 2.47.3
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.d.ts
CHANGED
|
@@ -21,10 +21,10 @@ declare const ORMSchema: z.ZodEnum<{
|
|
|
21
21
|
type ORM = z.infer<typeof ORMSchema>;
|
|
22
22
|
declare const BackendSchema: z.ZodEnum<{
|
|
23
23
|
none: "none";
|
|
24
|
-
next: "next";
|
|
25
24
|
hono: "hono";
|
|
26
25
|
express: "express";
|
|
27
26
|
fastify: "fastify";
|
|
27
|
+
next: "next";
|
|
28
28
|
elysia: "elysia";
|
|
29
29
|
convex: "convex";
|
|
30
30
|
}>;
|
|
@@ -38,10 +38,10 @@ declare const RuntimeSchema: z.ZodEnum<{
|
|
|
38
38
|
type Runtime = z.infer<typeof RuntimeSchema>;
|
|
39
39
|
declare const FrontendSchema: z.ZodEnum<{
|
|
40
40
|
none: "none";
|
|
41
|
+
next: "next";
|
|
41
42
|
"tanstack-router": "tanstack-router";
|
|
42
43
|
"react-router": "react-router";
|
|
43
44
|
"tanstack-start": "tanstack-start";
|
|
44
|
-
next: "next";
|
|
45
45
|
nuxt: "nuxt";
|
|
46
46
|
"native-nativewind": "native-nativewind";
|
|
47
47
|
"native-unistyles": "native-unistyles";
|
|
@@ -70,9 +70,9 @@ declare const ExamplesSchema: z.ZodEnum<{
|
|
|
70
70
|
}>;
|
|
71
71
|
type Examples = z.infer<typeof ExamplesSchema>;
|
|
72
72
|
declare const PackageManagerSchema: z.ZodEnum<{
|
|
73
|
+
bun: "bun";
|
|
73
74
|
npm: "npm";
|
|
74
75
|
pnpm: "pnpm";
|
|
75
|
-
bun: "bun";
|
|
76
76
|
}>;
|
|
77
77
|
type PackageManager = z.infer<typeof PackageManagerSchema>;
|
|
78
78
|
declare const DatabaseSetupSchema: z.ZodEnum<{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-better-t-stack",
|
|
3
|
-
"version": "2.47.
|
|
3
|
+
"version": "2.47.3",
|
|
4
4
|
"description": "A modern CLI tool for scaffolding end-to-end type-safe TypeScript projects with best practices and customizable configurations",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -23,6 +23,7 @@ export const createAuth = (
|
|
|
23
23
|
},
|
|
24
24
|
{{#if (or (includes frontend "tanstack-start") (includes frontend "next"))}}
|
|
25
25
|
baseUrl: siteUrl,
|
|
26
|
+
trustedOrigins: [siteUrl],
|
|
26
27
|
{{else}}
|
|
27
28
|
trustedOrigins: [siteUrl],
|
|
28
29
|
{{/if}}
|
|
@@ -45,4 +46,4 @@ export const getCurrentUser = query({
|
|
|
45
46
|
handler: async (ctx) => {
|
|
46
47
|
return authComponent.getAuthUser(ctx);
|
|
47
48
|
},
|
|
48
|
-
});
|
|
49
|
+
});
|
|
@@ -28,9 +28,7 @@ import { ThemeProvider } from "./theme-provider";
|
|
|
28
28
|
import { Toaster } from "./ui/sonner";
|
|
29
29
|
|
|
30
30
|
{{#if (eq backend "convex")}}
|
|
31
|
-
const convex = new ConvexReactClient(process.env.NEXT_PUBLIC_CONVEX_URL
|
|
32
|
-
expectAuth: true,
|
|
33
|
-
});
|
|
31
|
+
const convex = new ConvexReactClient(process.env.NEXT_PUBLIC_CONVEX_URL!);
|
|
34
32
|
{{/if}}
|
|
35
33
|
|
|
36
34
|
export default function Providers({
|
|
@@ -22,9 +22,7 @@ import { routeTree } from "./routeTree.gen";
|
|
|
22
22
|
{{else}}
|
|
23
23
|
import { ConvexProvider } from "convex/react";
|
|
24
24
|
{{/if}}
|
|
25
|
-
const convex = new ConvexReactClient(import.meta.env.VITE_CONVEX_URL as string
|
|
26
|
-
expectAuth: true,
|
|
27
|
-
}{{/if}});
|
|
25
|
+
const convex = new ConvexReactClient(import.meta.env.VITE_CONVEX_URL as string);
|
|
28
26
|
{{/if}}
|
|
29
27
|
|
|
30
28
|
const router = createRouter({
|