make backend optional

This commit is contained in:
Aman Varshney
2025-05-07 08:31:54 +05:30
parent af1e8efbdc
commit d09a284ce7
11 changed files with 116 additions and 25 deletions

View File

@@ -39,7 +39,7 @@ export async function setupExamples(config: ProjectConfig): Promise<void> {
});
}
if (serverDirExists) {
if (serverDirExists && backend !== "none") {
await addPackageDependency({
dependencies: ["ai", "@ai-sdk/google"],
projectDir: serverDir,