Skip to content

Commit

Permalink
fix(website): hack next-mdx-remote with vite config (DEV only) (#779)
Browse files Browse the repository at this point in the history
Hmm, this is going to be a big problem with ESM/CJS compat...

Maybe related: #421, #428
  • Loading branch information
dai-shi authored Jul 5, 2024
1 parent 2577f55 commit 116d77a
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 116d77a

Please sign in to comment.