From 73556c9fdf86994a276535573ac9f611f4c14a30 Mon Sep 17 00:00:00 2001 From: mulahasanovic Date: Mon, 6 Apr 2026 17:02:29 +0200 Subject: [PATCH] fix(ci): use CORS-whitelisted port for sasjs-tests dev server --- .github/workflows/server-tests.yml | 2 +- cypress.config.js | 2 +- sasjs-tests/vite.config.js | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/server-tests.yml b/.github/workflows/server-tests.yml index 3f26e6d..f2f3742 100644 --- a/.github/workflows/server-tests.yml +++ b/.github/workflows/server-tests.yml @@ -113,7 +113,7 @@ jobs: env: TERM: dumb run: | - sed -i "s|sasjsTestsUrl: '.*'|sasjsTestsUrl: 'http://localhost:5173'|g" ./cypress.config.js + sed -i "s|sasjsTestsUrl: '.*'|sasjsTestsUrl: 'http://localhost:3000'|g" ./cypress.config.js sed -i "s|username: '.*'|username: '${{ secrets.SASJS_USERNAME }}'|g" ./cypress.config.js sed -i "s|password: '.*'|password: '${{ secrets.SASJS_PASSWORD }}'|g" ./cypress.config.js cat ./cypress.config.js diff --git a/cypress.config.js b/cypress.config.js index 2e2a7e3..62ca1ff 100644 --- a/cypress.config.js +++ b/cypress.config.js @@ -9,7 +9,7 @@ module.exports = defineConfig({ supportFile: 'cypress/support/index.js' }, env: { - sasjsTestsUrl: 'http://localhost:5173', + sasjsTestsUrl: 'http://localhost:3000', username: '', password: '', screenshotOnRunFailure: false, diff --git a/sasjs-tests/vite.config.js b/sasjs-tests/vite.config.js index 44484a7..d9492f7 100644 --- a/sasjs-tests/vite.config.js +++ b/sasjs-tests/vite.config.js @@ -1,5 +1,8 @@ import { defineConfig } from 'vite' export default defineConfig({ + server: { + port: 3000 + }, build: { assetsInlineLimit: 0, assetsDir: ''