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:
parent
f5a0f388b7
commit
173c6183b3
1 changed files with 1 additions and 17 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue