From 85db661dd90cd1bcba59952881e44be17984d373 Mon Sep 17 00:00:00 2001 From: Pavel Jbanov Date: Fri, 3 May 2024 08:50:21 -0400 Subject: [PATCH 1/2] Mark next.js option experimental --- genkit-tools/src/commands/init.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/genkit-tools/src/commands/init.ts b/genkit-tools/src/commands/init.ts index 89a97495e1..c47157aad7 100644 --- a/genkit-tools/src/commands/init.ts +++ b/genkit-tools/src/commands/init.ts @@ -68,7 +68,7 @@ const platformOptions: Record = { }, nodejs: { label: 'Node.js', plugin: undefined }, nextjs: { - label: 'Next.js', + label: 'Next.js (Experimental)', plugin: undefined, }, }; From c8f654ba037d49895df79327bcd3d786ad43077d Mon Sep 17 00:00:00 2001 From: Pavel Jbanov Date: Fri, 3 May 2024 10:32:24 -0400 Subject: [PATCH 2/2] bug fix --- genkit-tools/src/commands/init.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/genkit-tools/src/commands/init.ts b/genkit-tools/src/commands/init.ts index c47157aad7..a95e307028 100644 --- a/genkit-tools/src/commands/init.ts +++ b/genkit-tools/src/commands/init.ts @@ -345,7 +345,7 @@ function generateSampleFile( if (platform === 'nextjs') { if (fs.existsSync('src/app')) { samplePath = 'src/app/genkit.ts'; - } else if (fs.existsSync('src')) { + } else if (fs.existsSync('app')) { samplePath = 'app/genkit.ts'; } else { throw new Error(