Skip to content

Commit 2041fd1

Browse files
committed
fix(landing): handleHttpError가 BASE_PATH prefix 고려하도록 수정 — peer 링크 prerender 통과
1 parent d6d7063 commit 2041fd1

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎landing/svelte.config.js‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,14 @@ const config = {
8383
prerender: {
8484
entries: ['*', '/docs/', '/blog/', ...companyEntries],
8585
handleHttpError: ({ path, referrer, message }) => {
86+
// basePath prefix 제거 후 검사 (CI에서 path는 /dartlab/... 형태)
87+
const stripped = basePath && path.startsWith(basePath) ? path.slice(basePath.length) : path;
8688
// /industry/ 는 아직 구현 전 — 무시
87-
if (path.startsWith('/industry/')) {
89+
if (stripped.startsWith('/industry/')) {
8890
return;
8991
}
9092
// /company/ 중 top 200에 없는 회사 링크 + JSON fetch 실패는 무시
91-
if (path.startsWith('/company/') || path.startsWith('/map/companies/')) {
93+
if (stripped.startsWith('/company/') || stripped.startsWith('/map/companies/')) {
9294
return;
9395
}
9496
throw new Error(`${message} (linked from ${referrer})`);

0 commit comments

Comments
 (0)