Skip to content

Commit 6f9832d

Browse files
fix(cli): update alchemy.run.ts file path for self backend
1 parent 002f8ba commit 6f9832d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

apps/cli/src/helpers/core/template-manager.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1094,10 +1094,14 @@ export async function setupDeploymentTemplates(
10941094
(context.serverDeploy === "alchemy" || isBackendSelf)
10951095
) {
10961096
if (await fs.pathExists(alchemyTemplateSrc)) {
1097+
const webAppDir = path.join(projectDir, "apps/web");
1098+
const destDir = isBackendSelf && (await fs.pathExists(webAppDir))
1099+
? webAppDir
1100+
: projectDir;
10971101
await processAndCopyFiles(
10981102
"alchemy.run.ts.hbs",
10991103
alchemyTemplateSrc,
1100-
projectDir,
1104+
destDir,
11011105
context,
11021106
);
11031107

0 commit comments

Comments
 (0)