-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't load png files in mdx with default bundler #2
Comments
From the contentlayer docs:
|
Suggested solution
DocumentationWorking with ImagesImage processing with Contentlayer is not currently supported, although we're planning on it. The current recommendation is to place images in the public directory, and then use a string field to store the path to that image. Alternatively, you can store your images in an asset service like Cloudinary or Imgix. See here for more detail on our current recommendation for image processing. Using next/image in Body ContentIf you want to use next/image to render your images, create a component to wrap next/image and add the image via component markup in your markdown or MDX file. For example, say we have an Image component in our project that wraps the next/image. import NextImage from 'next/image'
const Image = (props) => {
return <NextImage /* ... */ />
} Your content should then call this component directly. Other markdown content ...
<Image src="..." /> You can either use an |
commit 181c594 fixes this issue |
✘ [ERROR] No loader is configured for ".png" files: planetaria-design-system.png
The text was updated successfully, but these errors were encountered: