Link Checker is a development and build-time tool that scans your site for broken links, SEO issues, and accessibility problems. It runs 13 inspections covering common link errors like:
#fragment that don't exist on the pageBy keeping your links in check, you ensure that your site is discoverable and accessible to search engine crawlers and your users. Broken links can hurt SEO, frustrate users, and waste crawl budget.
Laioutr can use Nuxt Link Checker (part of Nuxt SEO) to automatically scan links during development and build time. Unlike robots.txt (which is included by default), Link Checker is optional and needs to be added to your project.
Nuxt Link Checker scans your site's links during:
The module checks:
/products/laptop, /categories/electronics)#section, #faq)rel, improper target, accessibility issuesYou can see issues live in your Nuxt app and magically fix them using Nuxt DevTools integration, or review build-time reports.
To enable link checking, add @nuxtjs/link-checker to your Nuxt modules:
// nuxt.config.ts
export default defineNuxtConfig({
modules: [
'@laioutr-core/frontend-core',
'@nuxtjs/link-checker', // Add this
// ... other modules
],
});
Then install the package:
pnpm add @nuxtjs/link-checker
# or
npm install @nuxtjs/link-checker
The module works with minimal configuration. You can customize it in nuxt.config.ts:
// nuxt.config.ts
export default defineNuxtConfig({
linkChecker: {
// Enable in development (default: true)
dev: true,
// Enable in production build (default: false)
build: false,
// Fail build on errors (default: false)
failOnError: false,
// Exclude specific paths from checking
exclude: ['/checkout/**', '/api/**'],
},
});
In development, the module shows link issues live in your Nuxt app:
This helps you catch and fix link problems as you develop.
During build, the module generates reports of all link issues:
Enable build-time checking:
// nuxt.config.ts
export default defineNuxtConfig({
linkChecker: {
build: true, // Enable during build
failOnError: true, // Fail build if errors found (optional)
},
});
Nuxt Link Checker runs 13 SEO-focused inspections:
#fragment where the anchor doesn't exist../page (should use absolute or root-relative)rel="noopener" or rel="nofollow"target="_blank" missing security attributeshrefSince Laioutr pages are built from sections and blocks configured in Studio, Link Checker automatically scans:
The module checks all links regardless of where they come from (static config, Studio props, or dynamic data).
Laioutr uses a link resolver (useLinkResolver) to resolve different link types (page, pageType, reference, URL, anchor). Link Checker validates:
So it helps catch issues with your link resolution logic, not just static links.
Since pages come from runtime config (RC), Link Checker can validate:
Exclude routes you don't want checked (e.g. API endpoints, admin pages):
// nuxt.config.ts
export default defineNuxtConfig({
linkChecker: {
exclude: [
'/api/**', // API routes
'/checkout/**', // Checkout flow
'/account/**', // Account pages
],
},
});
Make the build fail if link errors are found (useful for CI/CD):
// nuxt.config.ts
export default defineNuxtConfig({
linkChecker: {
build: true,
failOnError: true, // Build fails if errors found
},
});
Configure where reports are saved:
// nuxt.config.ts
export default defineNuxtConfig({
linkChecker: {
build: true,
report: {
html: './link-checker-report.html',
markdown: './link-checker-report.md',
},
},
});
When Link Checker is enabled, you can use Nuxt DevTools to:
Open DevTools (usually Alt+D or Cmd+Shift+D) and navigate to the Link Checker panel to see live inspections.
For detailed configuration options, inspection types, and advanced usage, see the Nuxt Link Checker documentation.
Introduction
SEO features for the Laioutr frontend including robots.txt, per-page meta tags, and how to configure search engine crawling and indexing.
OG Image
Generate social media preview images (og:image) for your Laioutr frontend using Vue templates. Create dynamic, branded preview images that appear when links are shared on social platforms.