Skip to content

Commit dee01ee

Browse files
fix(cli): update better-auth plugin setup for TanStack integration
1 parent 3a23b07 commit dee01ee

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

apps/cli/src/utils/better-auth-plugin-setup.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ export async function setupBetterAuthPlugins(
2020
config.backend === "self" &&
2121
config.frontend?.includes("tanstack-start")
2222
) {
23-
pluginsToAdd.push("reactStartCookies()");
23+
pluginsToAdd.push("tanstackStartCookies()");
2424
importsToAdd.push(
25-
'import { reactStartCookies } from "better-auth/react-start";',
25+
'import { tanstackStartCookies } from "better-auth/tanstack-start";',
2626
);
2727
}
2828

apps/cli/templates/deploy/alchemy/alchemy.run.ts.hbs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ export const web = await Nextjs("web", {
5454
{{else if (ne backend "self")}}
5555
NEXT_PUBLIC_SERVER_URL: process.env.NEXT_PUBLIC_SERVER_URL || "",
5656
{{/if}}
57-
{{#if (eq backend "self")}}
5857
{{#if (eq dbSetup "d1")}}
5958
DB: db,
6059
{{else if (ne database "none")}}
@@ -85,7 +84,6 @@ export const web = await Nextjs("web", {
8584
DATABASE_PASSWORD: process.env.DATABASE_PASSWORD || "",
8685
{{/if}}
8786
{{/if}}
88-
{{/if}}
8987
},
9088
dev: {
9189
command: "{{packageManager}} run dev"
@@ -128,7 +126,6 @@ export const web = await TanStackStart("web", {
128126
{{else if (ne backend "self")}}
129127
VITE_SERVER_URL: process.env.VITE_SERVER_URL || "",
130128
{{/if}}
131-
{{#if (eq backend "self")}}
132129
{{#if (eq dbSetup "d1")}}
133130
DB: db,
134131
{{else if (ne database "none")}}
@@ -159,7 +156,6 @@ export const web = await TanStackStart("web", {
159156
DATABASE_PASSWORD: process.env.DATABASE_PASSWORD || "",
160157
{{/if}}
161158
{{/if}}
162-
{{/if}}
163159
},
164160
dev: {
165161
command: "{{packageManager}} run dev"

0 commit comments

Comments
 (0)