Skip to content

Commit cb0e2ab

Browse files
fix(cli): add database url in alchemy.run.ts even when db setup is none
1 parent 77813f1 commit cb0e2ab

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export const web = await Nextjs("web", {
5757
{{#if (eq backend "self")}}
5858
{{#if (eq dbSetup "d1")}}
5959
DB: db,
60-
{{else if (and (ne database "none") (ne dbSetup "none"))}}
60+
{{else if (ne database "none")}}
6161
DATABASE_URL: alchemy.secret(process.env.DATABASE_URL),
6262
{{/if}}
6363
CORS_ORIGIN: process.env.CORS_ORIGIN || "",
@@ -131,7 +131,7 @@ export const web = await TanStackStart("web", {
131131
{{#if (eq backend "self")}}
132132
{{#if (eq dbSetup "d1")}}
133133
DB: db,
134-
{{else if (and (ne database "none") (ne dbSetup "none"))}}
134+
{{else if (ne database "none")}}
135135
DATABASE_URL: alchemy.secret(process.env.DATABASE_URL),
136136
{{/if}}
137137
CORS_ORIGIN: process.env.CORS_ORIGIN || "",
@@ -220,7 +220,7 @@ export const server = await Worker("server", {
220220
bindings: {
221221
{{#if (eq dbSetup "d1")}}
222222
DB: db,
223-
{{else if (and (ne database "none") (ne dbSetup "none"))}}
223+
{{else if (ne database "none")}}
224224
DATABASE_URL: alchemy.secret(process.env.DATABASE_URL),
225225
{{/if}}
226226
CORS_ORIGIN: process.env.CORS_ORIGIN || "",

0 commit comments

Comments
 (0)