docs: Reference to statically imported images (#80048)
Closes:
https://linear.app/vercel/issue/DOC-4730/docs-nextimage-local-images-broken-snippet
Fixes: #80023
Made the static image imports, into a sub section of local images, and
referenced how their width/height is auto calculated.
-
https://github.com/vercel/next.js/blob/fde4f7f2974d5870a74c196383af70df981de39e/packages/next/src/shared/lib/get-img-props.ts#L397-L398
here we copy the dimensions for statically imported images
There's also some tests that reference this usage:
-
https://github.com/vercel/next.js/blob/00c52d1506638ed8a4e46ac97ad999454c4823d1/test/integration/next-image-new/base-path/pages/static-img.js#L23
---------
Co-authored-by: Lee Robinson <lee@leerob.com>