integrating mdx with t3 stack app

How should I go about this?
4 Replies
noctate
noctate3y ago
yeah i've tried that but not sure how to structure this part const withMDX = require('@next/mdx')({ extension: /\.mdx?$/, options: { remarkPlugins: [], rehypePlugins: [], // If you use MDXProvider, uncomment the following line. // providerImportSource: "@mdx-js/react", }, }) module.exports = withMDX({ // Append the default value with md extensions pageExtensions: ['ts', 'tsx', 'js', 'jsx', 'md', 'mdx'], }) because t3 nextjs config looks different for example eslint yells at me when im pasting this part const withMDX = require('@next/mdx') and im not sure where put the module.exports = withMDX({ // Append the default value with md extensions pageExtensions: ['ts', 'tsx', 'js', 'jsx', 'md', 'mdx'], }) if i have something like this: export default defineNextConfig({ images: { domains: ['spoonacular.com'], }, reactStrictMode: true, swcMinify: true, // Next.js i18n docs: https://nextjs.org/docs/advanced-features/i18n-routing i18n: { locales: ["en"], defaultLocale: "en", }, });
needmorewood
needmorewood3y ago
You would need to convert them to import syntax to start As for the rest I'm not 100% sure These with wrappers are interesting I'm not use to this kind of API
noctate
noctate3y ago
@needmorewood okay thx!
Want results from more Discord servers?
Add your server