Hi Guys - I have raised this question also at https://github.com/hashicorp/next-mdx-remote/issues/479
I am truing to build a website that process dynamic routes at compile time through a path blog/[...slug]/page.tsx. I am using the example code in the readme of next-mdx-remote that explains how to use the compile and run methods of @mdx-js/mxd.
The problem I am having is that importing components and compiling images is not working. Code like
import Image from "next/image";
import MyImage from "@/images/myimage.gif";
<Image src={MyImage} />
gives me errors like Did you mean to import "next/image.js" and Error: Unknown file extension ".gif" for ...
I am assuming that the inline complation is not properly configured. Is there any way to get it to pick up the same runtime configuration that npm run build is using? Or is there a better way to achieve what I'm trying to do.
Full code for the website (with broken code checked in for now) is available at https://github.com/m5p3nc3r/website/
Describe the bug Hi Guys Whilst not strictly a problem with next-mdx-remote, the example documentation I am following is in this projects README.md. I am using the example code to pre-render routes...