forked from baron/baron-sso
chore: snapshot local state before dev merge
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
FROM node:lts AS build
|
||||
FROM node:lts AS deps
|
||||
|
||||
WORKDIR /workspace
|
||||
|
||||
@@ -20,6 +20,17 @@ ENV VITE_OIDC_CLIENT_ID=$VITE_OIDC_CLIENT_ID
|
||||
|
||||
RUN pnpm install --frozen-lockfile --ignore-scripts
|
||||
|
||||
FROM deps AS dev
|
||||
|
||||
WORKDIR /workspace/devfront
|
||||
ENV NODE_ENV=development
|
||||
|
||||
EXPOSE 5173
|
||||
|
||||
CMD ["npm", "run", "dev", "--", "--host", "0.0.0.0", "--port", "5173"]
|
||||
|
||||
FROM deps AS build
|
||||
|
||||
WORKDIR /workspace/devfront
|
||||
RUN npm run build
|
||||
|
||||
|
||||
BIN
devfront/e2e-evidence/tenant-access-allowed-tenant-added.png
Normal file
BIN
devfront/e2e-evidence/tenant-access-allowed-tenant-added.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 300 KiB |
BIN
devfront/e2e-evidence/tenant-access-allowed-tenant-deleted.png
Normal file
BIN
devfront/e2e-evidence/tenant-access-allowed-tenant-deleted.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 301 KiB |
@@ -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