add nextjs frontend and backend

This commit is contained in:
Aman Varshney
2025-04-12 21:19:06 +05:30
parent cff1a8202b
commit 33158a2ddf
48 changed files with 1213 additions and 198 deletions

View File

@@ -1,13 +1,18 @@
import { cancel, isCancel, select } from "@clack/prompts";
import pc from "picocolors";
import { DEFAULT_CONFIG } from "../constants";
import type { ProjectRuntime } from "../types";
import type { ProjectBackend, ProjectRuntime } from "../types";
export async function getRuntimeChoice(
runtime?: ProjectRuntime,
backend?: ProjectBackend,
): Promise<ProjectRuntime> {
if (runtime !== undefined) return runtime;
if (backend === "next") {
return "node";
}
const response = await select<ProjectRuntime>({
message: "Select runtime",
options: [