From e6a97f6b29dd83700be734ba02a7f1541752f12a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89mile=20R=C3=A9?= Date: Tue, 3 Feb 2026 12:56:14 +0400 Subject: [PATCH] Specify ports for vite dev servers and remove useless yaml conf from dev config MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Émile Ré --- apps/console/package.json | 2 +- apps/trust/package.json | 2 +- cfg/dev.yaml | 17 +++++------------ 3 files changed, 7 insertions(+), 14 deletions(-) diff --git a/apps/console/package.json b/apps/console/package.json index 8bd174293..3801271a8 100644 --- a/apps/console/package.json +++ b/apps/console/package.json @@ -4,7 +4,7 @@ "version": "0.0.0", "type": "module", "scripts": { - "dev": "vite", + "dev": "vite --port 5173", "relay-clean": "find src -type d -name \"__generated__\" -exec rm -rf {} +", "relay-compile": "npx relay-compiler", "relay": "npm run relay-clean && npm run relay-compile", diff --git a/apps/trust/package.json b/apps/trust/package.json index 18444f22a..72cb7435e 100644 --- a/apps/trust/package.json +++ b/apps/trust/package.json @@ -4,7 +4,7 @@ "version": "0.0.0", "type": "module", "scripts": { - "dev": "vite", + "dev": "vite --port 5174", "relay": "find src -type d -name \"__generated__\" -exec rm -rf {} + && npx relay-compiler ./relay.config.json", "build": "tsc -b && vite build", "lint": "eslint . --concurrency 2", diff --git a/cfg/dev.yaml b/cfg/dev.yaml index fee8446ec..cb3857ddc 100644 --- a/cfg/dev.yaml +++ b/cfg/dev.yaml @@ -1,6 +1,6 @@ unit: metrics: - addr: "localhost:5173" + addr: "localhost:8081" tracing: addr: "localhost:4317" max-batch-size: 512 @@ -37,7 +37,10 @@ probod: default: cors: - allowed-origins: ["http://localhost:8080", "http://localhost:5173"] + allowed-origins: + - "http://localhost:8080" + - "http://localhost:5173" + - "http://localhost:5174" extra-header-fields: {} console: complaince-page: @@ -64,16 +67,6 @@ probod: pepper: "this-is-a-secure-pepper-for-password-hashing-at-least-32-bytes" iterations: 1000000 - trust-auth: - cookie-name: "TCT" - cookie-domain: "localhost" - cookie-duration: 24 - token-duration: 720 - report-url-duration: 15 - token-secret: "this-is-a-secure-secret-for-trust-token-signing-at-least-32-bytes" - scope: "trust_center_readonly" - token-type: "trust_center_access" - aws: region: "us-east-1" bucket: "probod"