Skip to content

Commit da931c0

Browse files
committed
fix: Export startBackendServer function and fix import issues
1 parent dd63906 commit da931c0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/ipc/handlers/chat_handlers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ export function registerChatHandlers() {
188188
throw new Error("App not found");
189189
}
190190

191-
const backendPath = getDyadAppPath(app.path, "backend");
191+
const backendPath = path.join(getDyadAppPath(app.path), "backend");
192192

193193
// Check if backend directory exists
194194
if (!fs.existsSync(backendPath)) {

src/ipc/handlers/createFromTemplate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1647,7 +1647,7 @@ async function installDependenciesForFramework(projectPath: string, framework: s
16471647
});
16481648
}
16491649

1650-
async function startBackendServer(projectPath: string, framework: string) {
1650+
export async function startBackendServer(projectPath: string, framework: string) {
16511651
const startCommand = getStartCommandForFramework(framework);
16521652

16531653
return new Promise<void>((resolve, reject) => {

0 commit comments

Comments
 (0)