forked from baron/baron-sso
chore: snapshot local state before dev merge
This commit is contained in:
@@ -13,7 +13,12 @@ const configuredWorkers = process.env.PLAYWRIGHT_WORKERS
|
||||
const skipWebServer =
|
||||
process.env.PLAYWRIGHT_SKIP_WEBSERVER === "1" ||
|
||||
process.env.PLAYWRIGHT_SKIP_WEBSERVER === "true";
|
||||
const baseURL = process.env.PLAYWRIGHT_BASE_URL || "http://127.0.0.1:4174";
|
||||
const port = Number.parseInt(process.env.PORT ?? "5174", 10);
|
||||
const defaultBaseUrl = `http://127.0.0.1:${port}`;
|
||||
const baseURL =
|
||||
process.env.PLAYWRIGHT_BASE_URL || process.env.BASE_URL || defaultBaseUrl;
|
||||
const usePreviewServer =
|
||||
process.env.CI === "true" || process.env.PLAYWRIGHT_USE_PREVIEW === "true";
|
||||
|
||||
/**
|
||||
* Read environment variables from file.
|
||||
@@ -73,9 +78,10 @@ export default defineConfig({
|
||||
webServer: skipWebServer
|
||||
? undefined
|
||||
: {
|
||||
command:
|
||||
"VITE_OIDC_AUTHORITY=http://localhost:5000/oidc ./node_modules/.bin/vite build && ./node_modules/.bin/vite preview --host 127.0.0.1 --strictPort --port 4174",
|
||||
url: baseURL,
|
||||
reuseExistingServer: false,
|
||||
command: usePreviewServer
|
||||
? `VITE_OIDC_AUTHORITY=http://localhost:5000/oidc ./node_modules/.bin/vite build && ./node_modules/.bin/vite preview --host 127.0.0.1 --strictPort --port ${port}`
|
||||
: `VITE_OIDC_AUTHORITY=http://localhost:5000/oidc ./node_modules/.bin/vite --host 127.0.0.1 --strictPort --port ${port}`,
|
||||
url: defaultBaseUrl,
|
||||
reuseExistingServer: !process.env.CI && !process.env.PORT,
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user