fix(ci): perf job — point Lighthouse at /fr/ and /en/, drop spa fallback #92
@@ -112,8 +112,7 @@
|
|||||||
"options": {
|
"options": {
|
||||||
"buildTarget": "portal-shell:build",
|
"buildTarget": "portal-shell:build",
|
||||||
"port": 4200,
|
"port": 4200,
|
||||||
"staticFilePath": "dist/apps/portal-shell/browser",
|
"staticFilePath": "dist/apps/portal-shell/browser"
|
||||||
"spa": true
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+10
-7
@@ -4,20 +4,23 @@
|
|||||||
* Thresholds match the Google "Good" Core Web Vitals values plus the
|
* Thresholds match the Google "Good" Core Web Vitals values plus the
|
||||||
* Lighthouse Performance score floor we set as the project bar.
|
* Lighthouse Performance score floor we set as the project bar.
|
||||||
*
|
*
|
||||||
* Critical-routes list grows as features land. v1 only checks the
|
* Critical-routes list grows as features land. v1 checks the
|
||||||
* static-served portal-shell bundle (which today shows the Nx Welcome
|
* static-served portal-shell bundle on both locale entry points
|
||||||
* placeholder); meaningful per-route assertions land alongside the
|
* (`/fr/` is the default served at the production root via the smart
|
||||||
* features that introduce those routes.
|
* redirect; `/en/` is the alternate). ADR-0019 mandates that both
|
||||||
|
* locales clear the same bar. Per-route assertions land alongside
|
||||||
|
* the features that introduce those routes.
|
||||||
*/
|
*/
|
||||||
module.exports = {
|
module.exports = {
|
||||||
ci: {
|
ci: {
|
||||||
collect: {
|
collect: {
|
||||||
// Serve the production bundle statically (no BFF needed for v1
|
// Serve the production bundle statically (no BFF needed for v1
|
||||||
// measurements). When real auth / routes exist, the URL list
|
// measurements). With `--localize` the build emits per-locale
|
||||||
// expands to the critical-routes list documented in ADR-0017.
|
// folders (`browser/en/`, `browser/fr/`); we serve their parent
|
||||||
|
// and Lighthouse hits each locale's root index.html directly.
|
||||||
startServerCommand: 'pnpm nx run portal-shell:serve-static',
|
startServerCommand: 'pnpm nx run portal-shell:serve-static',
|
||||||
startServerReadyPattern: 'Available on:',
|
startServerReadyPattern: 'Available on:',
|
||||||
url: ['http://localhost:4200/'],
|
url: ['http://localhost:4200/fr/', 'http://localhost:4200/en/'],
|
||||||
numberOfRuns: 3,
|
numberOfRuns: 3,
|
||||||
settings: {
|
settings: {
|
||||||
// Slow-4G profile so scores are stable across CI runners and
|
// Slow-4G profile so scores are stable across CI runners and
|
||||||
|
|||||||
Reference in New Issue
Block a user