Skip to content

nextjs/no-document-import-in-page Correctness

What it does

Prevent importing next/document outside of pages/_document.js.

Why is this bad?

Example

javascript

References

Released under the MIT License.