Skip to content

Commit

Permalink
fix(website): hack next-mdx-remote with vite config (DEV only) (dai-s…
Browse files Browse the repository at this point in the history
…hi#779)

Hmm, this is going to be a big problem with ESM/CJS compat...

Maybe related: dai-shi#421, dai-shi#428
  • Loading branch information
dai-shi authored and himself65 committed Jul 9, 2024
1 parent a1d06b7 commit f79441c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions packages/website/vite.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/** @type {import('vite').UserConfig} */
export default ({ mode }: { mode: string }) => {
if (mode === 'development') {
return {
ssr: {
optimizeDeps: {
include: ['next-mdx-remote/rsc'],
},
},
};
}
return {};
};

0 comments on commit f79441c

Please sign in to comment.