跳转到内容

astro-smart-links

自动区分内部链接、断开链接与外部链接,构建结束时输出断链报告——无需二次构建,也无需路由文件。
终端窗口
npm install astro-smart-links
astro.config.mjs
import { defineConfig } from 'astro/config';
import { smartLinks } from 'astro-smart-links';
export default defineConfig({
integrations: [smartLinks()],
});