Ver código fonte

fix: env variable for text-to-diagram and use frozen lock file when install deps in excalidraw-app (#7409)

Aakansha Doshi 1 ano atrás
pai
commit
b7d7ccc929
2 arquivos alterados com 2 adições e 2 exclusões
  1. 1 1
      excalidraw-app/App.tsx
  2. 1 1
      package.json

+ 1 - 1
excalidraw-app/App.tsx

@@ -780,7 +780,7 @@ const ExcalidrawWrapper = () => {
             try {
             try {
               const response = await fetch(
               const response = await fetch(
                 `${
                 `${
-                  import.meta.env.VITE_APP_GIT_SHA
+                  import.meta.env.VITE_APP_AI_BACKEND
                 }/v1/ai/text-to-diagram/generate`,
                 }/v1/ai/text-to-diagram/generate`,
                 {
                 {
                   method: "POST",
                   method: "POST",

+ 1 - 1
package.json

@@ -93,7 +93,7 @@
     "fix:code": "yarn test:code --fix",
     "fix:code": "yarn test:code --fix",
     "fix:other": "yarn prettier --write",
     "fix:other": "yarn prettier --write",
     "fix": "yarn fix:other && yarn fix:code",
     "fix": "yarn fix:other && yarn fix:code",
-    "install:deps": "yarn install --frozen-lockfile && yarn --cwd ./excalidraw-app",
+    "install:deps": "yarn install --frozen-lockfile && yarn --frozen-lockfile --cwd ./excalidraw-app",
     "locales-coverage": "node scripts/build-locales-coverage.js",
     "locales-coverage": "node scripts/build-locales-coverage.js",
     "locales-coverage:description": "node scripts/locales-coverage-description.js",
     "locales-coverage:description": "node scripts/locales-coverage-description.js",
     "prepare": "husky install",
     "prepare": "husky install",