-
-
Notifications
You must be signed in to change notification settings - Fork 154
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
not work after deployed to vercel #291
Comments
Hi, see #283 (comment)
|
I'm using the remix framework. what config should I apply? |
should be fixed with |
Could not resolve "@code-hike/mdx/dist/components.cjs.js" I'm using it with mdx-bundler. |
Can you share more details? |
sure. I'm doing it on the server side. import { bundleMDX } from "mdx-bundler";
import { remarkCodeHike } from "@code-hike/mdx";
import theme from "shiki/themes/nord.json";
export const loader = async () => {
const data = await fetchFromCRM();
const result = await bundleMDX({
source: data,
mdxOptions(options, frontmatter) {
options.remarkPlugins = [
...(options.remarkPlugins ?? []),
[
remarkCodeHike,
{
showCopyButton: true,
theme,
},
],
];
return options;
},
});
return { result }
} |
hmm, you may need to use |
I'm running the mdx compiler on the server side on each page request, it works fine on my local machine, but on on vercel.
the error message
The text was updated successfully, but these errors were encountered: