1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-07-24 23:39:37 +02:00

Simplify VitePress config: set ignoreDeadLinks to true for streamlined link management

This commit is contained in:
Sean Morley 2024-11-27 11:59:24 -05:00
parent f5a0f388b7
commit 173c6183b3

View file

@ -8,23 +8,7 @@ export default defineConfig({
lang: "en-US",
// lastUpdated: true,
ignoreDeadLinks: [
// ignore exact url "/playground"
"/playground",
// ignore all localhost links
/^https?:\/\/localhost/,
// ignore localhost links with any port
// ignore http://localhost:8015
/^https?:\/\/localhost:\d+/,
/^http?:\/\/localhost:\d+/,
// ignore all links include "/playground/"
// ignore all links include "/repl/""
/\/repl\//,
// custom function, ignore all links include "ignore"
(url) => {
return url.toLowerCase().includes("ignore");
},
],
ignoreDeadLinks: true,
sitemap: {
hostname: "https://adventurelog.app",