Adds support for custom admin port via env var #3808

and documentation
This commit is contained in:
Jamie Curnow committed 2026-06-10 11:24:53 +10:00
1 parent a5db5ed156
commit a62c2a6dc3
13 files changed
+67 -10

No files matched your search

+3 -1
View File
@@ -1,6 +1,8 @@
import { defineConfig } from 'cypress';
import pluginSetup from '../plugins/index.mjs';
const adminPort = process.env.NPM_ADMIN_PORT ?? 81;
export default defineConfig({
allowCypressEnv: false,
requestTimeout: 30000,
@@ -19,6 +21,6 @@ export default defineConfig({
env: {
swaggerBase: `{{baseUrl}}/api/schema?ts=${Date.now()}`,
},
baseUrl: "http://fullstack:81",
baseUrl: `http://fullstack:${adminPort}`,
}
});