create-better-t-stack 2.46.3-canary.46360b92 → 2.46.3-canary.a2097c5b

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/cli.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { createBtsCli } from "./src-DHpq-szu.js";
2
+ import { createBtsCli } from "./src-C8eRIOI8.js";
3
3
 
4
4
  //#region src/cli.ts
5
5
  createBtsCli().run();
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env node
2
- import { builder, createBtsCli, docs, init, router, sponsors } from "./src-DHpq-szu.js";
2
+ import { builder, createBtsCli, docs, init, router, sponsors } from "./src-C8eRIOI8.js";
3
3
 
4
4
  export { builder, createBtsCli, docs, init, router, sponsors };
@@ -4522,7 +4522,7 @@ async function setupEnvironmentVariables(config) {
4522
4522
  const convexBackendDir = path.join(projectDir, "packages/backend");
4523
4523
  if (await fs.pathExists(convexBackendDir)) {
4524
4524
  const convexBackendVars = [{
4525
- key: hasNextJs ? "NEXT_PUBLIC_CONVEX_SITE_URL" : "VITE_CONVEX_SITE_URL",
4525
+ key: hasTanStackStart ? "NEXT_PUBLIC_CONVEX_SITE_URL" : "VITE_CONVEX_SITE_URL",
4526
4526
  value: "",
4527
4527
  condition: true
4528
4528
  }, {
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.a2097c5b",
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 });