create-better-t-stack 2.46.3-canary.46360b92 → 2.46.3-canary.62efbc44

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.46.3-canary.46360b92",
3
+ "version": "2.46.3-canary.62efbc44",
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",
@@ -1,5 +1,5 @@
1
1
  import { createClient, type GenericCtx } from "@convex-dev/better-auth";
2
- {{#if (or (includes frontend "tanstack-start") (includes frontend "next"))}}
2
+ {{#if (or (eq frontend "tanstack-start") (eq frontend "next"))}}
3
3
  import { convex } from "@convex-dev/better-auth/plugins";
4
4
  {{else}}
5
5
  import { convex, crossDomain } from "@convex-dev/better-auth/plugins";
@@ -21,7 +21,7 @@ export const createAuth = (
21
21
  logger: {
22
22
  disabled: optionsOnly,
23
23
  },
24
- {{#if (or (includes frontend "tanstack-start") (includes frontend "next"))}}
24
+ {{#if (or (eq frontend "tanstack-start") (eq frontend "next"))}}
25
25
  baseUrl: siteUrl,
26
26
  {{else}}
27
27
  trustedOrigins: [siteUrl],
@@ -32,7 +32,7 @@ export const createAuth = (
32
32
  requireEmailVerification: false,
33
33
  },
34
34
  plugins: [
35
- {{#unless (or (includes frontend "tanstack-start") (includes frontend "next"))}}
35
+ {{#unless (or (eq frontend "tanstack-start") (eq frontend "next"))}}
36
36
  crossDomain({ siteUrl }),
37
37
  {{/unless}}
38
38
  convex(),
@@ -3,7 +3,7 @@ import { authComponent, createAuth } from "./auth";
3
3
 
4
4
  const http = httpRouter();
5
5
 
6
- {{#if (or (includes frontend "tanstack-start") (includes frontend "next"))}}
6
+ {{#if (or (eq frontend "tanstack-start") (eq frontend "next"))}}
7
7
  authComponent.registerRoutes(http, createAuth);
8
8
  {{else}}
9
9
  authComponent.registerRoutes(http, createAuth, { cors: true });