@ariada-org/nextjs-plugin
v0.1.0
Published
Next.js integration that scans exported or built HTML with Ariada accessibility checks.
Maintainers
Readme
Ariada Next.js Plugin
Thin Next.js adapter that scans exported out/ HTML or rendered .next/server
HTML after a build. It reuses @ariada-org/vite-plugin static HTML scanning and
does not implement accessibility rules itself.
Official contract checked during implementation:
- Next.js config is provided through
next.config.js. Source: https://nextjs.org/docs/app/api-reference/config/next-config-js - Next.js exposes a
webpackconfig hook that wrapper plugins can preserve. Source: https://nextjs.org/docs/app/api-reference/config/next-config-js/webpack
import { withAriada } from '@ariada-org/nextjs-plugin';
export default withAriada({
output: 'export',
});Run the scan after next build or next export:
node -e "import('@ariada-org/nextjs-plugin').then(m => m.scanNextOutput(process.cwd()))"