Skip to content

Commit 218115e

Browse files
author
zengfr
committed
fix(governance): drop basePath from lighthouse URLs
The previous attempt double-added the basePath: treosh auto-prepends /aicodingagentteam/ when given http://localhost:3000/, and then we tried to add it again, producing /aicodingagentteam/aicodingagentteam/ which python http.server cannot find in ./out. Drop the basePath from URLs entirely. python serves ./out directly, where en/, zh/, ja/, ko/ live. The basePath concern only applies to production GitHub Pages deployment, not the lhci static-dist test.
1 parent 2d001d6 commit 218115e

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

website/.lighthouserc.cjs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ module.exports = {
1616
// URLs use root-relative paths because lhci+staticDistDir auto-
1717
// prefixes the dynamic port assigned by treosh's internal server.
1818
url: [
19-
'http://localhost:3000/aicodingagentteam/',
20-
'http://localhost:3000/aicodingagentteam/en/',
21-
'http://localhost:3000/aicodingagentteam/zh/',
22-
'http://localhost:3000/aicodingagentteam/ja/',
23-
'http://localhost:3000/aicodingagentteam/ko/',
19+
'http://localhost:3000/',
20+
'http://localhost:3000/en/',
21+
'http://localhost:3000/zh/',
22+
'http://localhost:3000/ja/',
23+
'http://localhost:3000/ko/',
2424
],
2525
numberOfRuns: 1,
2626
settings: {
@@ -60,3 +60,4 @@ module.exports = {
6060

6161

6262

63+

0 commit comments

Comments
 (0)