Skip to content

Commit 73938cb

Browse files
committed
refactor: add descriptive comment
1 parent 92c0a21 commit 73938cb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

svelte.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ const config = {
1414
publicPrefix: 'RV'
1515
},
1616
prerender: {
17+
// in src/routes/+page.svelte and src/lib/components/organisms/Footer.svelte
18+
// websiteUrl is dynamically fetched from the API
19+
// when the site is built with adapter-static, the crawler tries to access
20+
// null/patches, null/download, etc... and so it'll fail
21+
// since it's not able to fetch external data
1722
handleHttpError: ({ status, message }) => {
1823
if (status === 404) return;
1924
throw new Error(message);

0 commit comments

Comments
 (0)