mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
feat(cli): add elysia + aisdk support and fix fastify ai example
This commit is contained in:
@@ -912,13 +912,6 @@ export const analyzeStackCompatibility = (
|
||||
"Todo example removed (requires a database but 'None' was selected)",
|
||||
});
|
||||
}
|
||||
if (nextStack.backend === "elysia" && nextStack.examples.includes("ai")) {
|
||||
incompatibleExamples.push("ai");
|
||||
changes.push({
|
||||
category: "examples",
|
||||
message: "AI example removed (not compatible with Elysia backend)",
|
||||
});
|
||||
}
|
||||
if (isSolid && nextStack.examples.includes("ai")) {
|
||||
incompatibleExamples.push("ai");
|
||||
changes.push({
|
||||
@@ -942,19 +935,6 @@ export const analyzeStackCompatibility = (
|
||||
notes.database.hasIssue = true;
|
||||
notes.examples.hasIssue = true;
|
||||
}
|
||||
if (
|
||||
nextStack.backend === "elysia" &&
|
||||
uniqueIncompatibleExamples.includes("ai")
|
||||
) {
|
||||
notes.backend.notes.push(
|
||||
"AI example is not compatible with Elysia. It will be removed.",
|
||||
);
|
||||
notes.examples.notes.push(
|
||||
"AI example is not compatible with Elysia. It will be removed.",
|
||||
);
|
||||
notes.backend.hasIssue = true;
|
||||
notes.examples.hasIssue = true;
|
||||
}
|
||||
if (isSolid && uniqueIncompatibleExamples.includes("ai")) {
|
||||
notes.webFrontend.notes.push(
|
||||
"AI example is not compatible with Solid. It will be removed.",
|
||||
@@ -1551,9 +1531,6 @@ export const getDisabledReason = (
|
||||
}
|
||||
|
||||
if (category === "examples" && optionId === "ai") {
|
||||
if (finalStack.backend === "elysia") {
|
||||
return "AI example is not compatible with Elysia backend. Try Hono, Express, or Fastify.";
|
||||
}
|
||||
if (finalStack.webFrontend.includes("solid")) {
|
||||
return "AI example is not compatible with Solid frontend. Try React-based frontends.";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user