From 81ed8a20ad14c8d7bc17ac607d212022d71a68d1 Mon Sep 17 00:00:00 2001 From: dphuang2 Date: Mon, 2 Oct 2023 14:40:59 -0700 Subject: [PATCH] pin demo to sales env (#235) --- .../src/pages/interactive-tutorial/_vm/package.json | 2 +- .../pages/interactive-tutorial/_vm/sales-demo-package.json | 2 +- .../src/pages/interactive-tutorial/_vm/stackblitzrc.json | 5 +++++ .../konfig-docs/src/pages/interactive-tutorial/index.tsx | 2 ++ 4 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 generator/konfig-docs/src/pages/interactive-tutorial/_vm/stackblitzrc.json diff --git a/generator/konfig-docs/src/pages/interactive-tutorial/_vm/package.json b/generator/konfig-docs/src/pages/interactive-tutorial/_vm/package.json index d946ac69f..28836ddea 100644 --- a/generator/konfig-docs/src/pages/interactive-tutorial/_vm/package.json +++ b/generator/konfig-docs/src/pages/interactive-tutorial/_vm/package.json @@ -6,7 +6,7 @@ "make-request": "ts-node make-request.ts" }, "dependencies": { - "konfig-cli": "^1.0.234", + "konfig-cli": "1.15.0", "axios": "0.27.2", "ts-node": "^10.9.1", "typescript": "^5.1.6" diff --git a/generator/konfig-docs/src/pages/interactive-tutorial/_vm/sales-demo-package.json b/generator/konfig-docs/src/pages/interactive-tutorial/_vm/sales-demo-package.json index 0ee921753..5c9a7d007 100644 --- a/generator/konfig-docs/src/pages/interactive-tutorial/_vm/sales-demo-package.json +++ b/generator/konfig-docs/src/pages/interactive-tutorial/_vm/sales-demo-package.json @@ -6,7 +6,7 @@ "make-request": "ts-node make-request.ts" }, "dependencies": { - "konfig-cli": "^1.0.234", + "konfig-cli": "1.15.0", "axios": "0.27.2", "ts-node": "^10.9.1", "typescript": "^5.1.6" diff --git a/generator/konfig-docs/src/pages/interactive-tutorial/_vm/stackblitzrc.json b/generator/konfig-docs/src/pages/interactive-tutorial/_vm/stackblitzrc.json new file mode 100644 index 000000000..c433d85ed --- /dev/null +++ b/generator/konfig-docs/src/pages/interactive-tutorial/_vm/stackblitzrc.json @@ -0,0 +1,5 @@ +{ + "env": { + "KONFIG_API_URL": "https://konfig-api-sales.onrender.com" + } +} diff --git a/generator/konfig-docs/src/pages/interactive-tutorial/index.tsx b/generator/konfig-docs/src/pages/interactive-tutorial/index.tsx index 3c38a97bb..009bd6675 100644 --- a/generator/konfig-docs/src/pages/interactive-tutorial/index.tsx +++ b/generator/konfig-docs/src/pages/interactive-tutorial/index.tsx @@ -15,6 +15,7 @@ import { makeRequestTsRefactored, makeRequestTsRefactoredFixed, } from "./_vm"; +import stackblitzrc from "./_vm/stackblitzrc.json"; import packageJson from "./_vm/package.json"; import salesPackageJson from "./_vm/sales-demo-package.json"; import tsconfigJson from "./_vm/tsconfig.json"; @@ -228,6 +229,7 @@ export default function LiveDemo({ sales }: { sales?: boolean }) { 2 ), "api.yaml": apiYaml, + ".stackblitzrc": JSON.stringify(stackblitzrc, undefined, 2), "yarn.lock": yarnLock, "make-request.ts": makeRequestTs, "tsconfig.json": JSON.stringify(tsconfigJson, undefined, 2),