-
Notifications
You must be signed in to change notification settings - Fork 476
Added harness mode for Next.js. #93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So the usage for this is:
genkit start src/ai/*.ts --mode harness
is that right?
import * as path from 'path'; | ||
import { logger } from '../utils'; | ||
|
||
async function main() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will this work with loading/transpiling TS files? Does it automatically set GENKIT_ENV=dev
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested it with .ts, it worked. The envs are set automatically like in the default app loading.
Not quite. You add this to your
And then run normally with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love it! Can you adjust genkit init
for next.js to:
- Create
genkit.config.ts
inside asrc/ai
directory - Automatically configure
genkit start
for harness mode
Yep, will do in follow up PR. |
No description provided.