create-better-t-stack 2.48.1 → 2.48.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-better-t-stack",
|
|
3
|
-
"version": "2.48.
|
|
3
|
+
"version": "2.48.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",
|
|
@@ -26,7 +26,7 @@ import { orpc, queryClient } from "./utils/orpc";
|
|
|
26
26
|
{{/if}}
|
|
27
27
|
|
|
28
28
|
{{#if (eq backend "convex")}}
|
|
29
|
-
export function
|
|
29
|
+
export function getRouter() {
|
|
30
30
|
const CONVEX_URL = (import.meta as any).env.VITE_CONVEX_URL!;
|
|
31
31
|
if (!CONVEX_URL) {
|
|
32
32
|
console.error("missing envar VITE_CONVEX_URL");
|
|
@@ -105,7 +105,7 @@ const trpc = createTRPCOptionsProxy({
|
|
|
105
105
|
{{else if (eq api "orpc")}}
|
|
106
106
|
{{/if}}
|
|
107
107
|
|
|
108
|
-
export const
|
|
108
|
+
export const getRouter = () => {
|
|
109
109
|
const router = createTanStackRouter({
|
|
110
110
|
routeTree,
|
|
111
111
|
scrollRestoration: true,
|
|
@@ -143,6 +143,6 @@ export const createRouter = () => {
|
|
|
143
143
|
|
|
144
144
|
declare module "@tanstack/react-router" {
|
|
145
145
|
interface Register {
|
|
146
|
-
router: ReturnType<typeof
|
|
146
|
+
router: ReturnType<typeof getRouter>;
|
|
147
147
|
}
|
|
148
148
|
}
|