Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: update scripts (#6959)

ecmadao97105cab7245
diff --git a/.github/workflows/frontend-tests.yml b/.github/workflows/frontend-tests.yml
index ca966e2af5..fc346c4734 100644
--- a/.github/workflows/frontend-tests.yml
+++ b/.github/workflows/frontend-tests.yml
@@ -46,5 +46,7 @@ jobs:
working-directory: frontend
- name: Run pnpm release build
run: |
+ cp ../backend/plugin/advisor/config/* ./src/types
+ cp ../backend/enterprise/api/plan.yaml ./src/types
pnpm release-docker
working-directory: frontend
diff --git a/frontend/package.json b/frontend/package.json
index 957989e892..2610b6af8c 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -5,8 +5,8 @@
"dev": "npm run copy-config-file && vite --mode dev-local",
"release": "export NODE_OPTIONS=--max_old_space_size=4096 && npm run copy-config-file && vite build --mode release --outDir=../backend/server/dist --emptyOutDir",
"dev-embed": "export NODE OPTIONS=--max_old_space_size=4096 && npm run copy-config-file && vite build --mode dev --outDir=../backend/server/dist --emptyOutDir",
- "dev-docker": "export NODE_OPTIONS=--max_old_space_size=4096 && npm run copy-config-file && vite build --mode dev",
- "release-docker": "export NODE_OPTIONS=--max_old_space_size=4096 && npm run copy-config-file && vite build --mode release",
+ "dev-docker": "export NODE_OPTIONS=--max_old_space_size=4096 && vite build --mode dev",
+ "release-docker": "export NODE_OPTIONS=--max_old_space_size=4096 && vite build --mode release",
"lint": "eslint --cache --ext .js,.ts,.tsx,.vue src",
"lint:fix": "eslint --cache --ext .js,.ts,.tsx,.vue --fix src",
"test": "vitest run",
diff --git a/scripts/Dockerfile b/scripts/Dockerfile
index 80f8cba129..7514ce819d 100644
--- a/scripts/Dockerfile
+++ b/scripts/Dockerfile
@@ -20,6 +20,7 @@ RUN pnpm install --frozen-lockfile
COPY ./frontend/ .
# Copy the SQL review config files to the frontend
COPY ./backend/plugin/advisor/config/ ./src/types
+COPY ./backend/enterprise/api/plan.yaml ./src/types/
# Build frontend
RUN pnpm "${RELEASE}-docker"
diff --git a/scripts/Dockerfile.render-demo b/scripts/Dockerfile.render-demo
index cd300ca9c2..9f8b497608 100644
--- a/scripts/Dockerfile.render-demo
+++ b/scripts/Dockerfile.render-demo
@@ -15,6 +15,7 @@ RUN pnpm install --frozen-lockfile
COPY ./frontend/ .
# Copy the SQL review config files to the frontend
COPY ./backend/plugin/advisor/config/ ./src/types
+COPY ./backend/enterprise/api/plan.yaml ./src/types/
# Build frontend
RUN pnpm "${RELEASE}-docker"