mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
feat: add ai chat example and update flags structure
This commit is contained in:
@@ -46,6 +46,13 @@ export async function setupEnvironmentVariables(
|
||||
}
|
||||
}
|
||||
|
||||
if (
|
||||
options.examples?.includes("ai") &&
|
||||
!envContent.includes("GOOGLE_GENERATIVE_AI_API_KEY")
|
||||
) {
|
||||
envContent += "\nGOOGLE_GENERATIVE_AI_API_KEY=";
|
||||
}
|
||||
|
||||
await fs.writeFile(envPath, envContent.trim());
|
||||
|
||||
if (options.frontend.includes("web")) {
|
||||
|
||||
Reference in New Issue
Block a user