Skip to content

Commit

Permalink
fix: enable-preview
Browse files Browse the repository at this point in the history
  • Loading branch information
i2amsam committed Feb 5, 2025
1 parent 69fa060 commit 8c635b1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
9 changes: 5 additions & 4 deletions samples/js-chatbot/.idx/dev.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,20 @@
workspace = {
# Runs when a workspace is first created
onCreate = {
npm-install = "npm ci --no-audit --prefer-offline --no-progress --timing && npm run setup";
npm-install = "npm run setup";
default.openFiles = [ "README.md" "server/src/index.ts" ];
};
onStart = {
npm-run-server = "npm run start:server"
}
npm-run-server = "npm run start:server";
};
};

previews = {
enable = true;
previews = {
web = {
command = ["npm run start:ng"];
cwd = "genkit-app";
command = ["npm" "run" "start" "--" "--port" "$PORT"];
env = {
PORT = "$PORT";
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import { MatIconModule } from '@angular/material/icon';
import { MatInputModule } from '@angular/material/input';
import { MatProgressBarModule } from '@angular/material/progress-bar';
import { MatRadioModule } from '@angular/material/radio';
import { streamFlow } from 'genkit/client';
import { streamFlow } from 'genkit/beta/client';
import { MarkdownModule } from 'ngx-markdown';

const url = 'http://127.0.0.1:3400/chatbotFlow';
Expand Down
2 changes: 1 addition & 1 deletion samples/js-chatbot/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"main": "lib/index.js",
"scripts": {
"start": "node lib/index.js",
"genkit:dev": "genkit start -- npm run dev",
"genkit:dev": "npx genkit start -- npm run dev",
"dev": "tsx --watch src/index.ts",
"build": "tsc",
"build:watch": "tsc --watch",
Expand Down

0 comments on commit 8c635b1

Please sign in to comment.