This commit is contained in:
Torsten Dittmann
2024-02-26 14:00:01 +01:00
parent f234f82e8c
commit 79d85d6aa2
2 changed files with 12 additions and 3 deletions

View File

@@ -51,7 +51,17 @@ const config = {
$markdoc: './src/markdoc'
},
prerender: {
concurrency: 32
concurrency: 32,
/**
* @type {import('@sveltejs/kit').PrerenderMissingIdHandler}
*/
handleMissingId: ({ path, message }) => {
if (path.startsWith('/docs/references/')) {
console.warn(message);
return;
}
throw new Error(message);
}
}
}
};