🔧 Update next.config.mjs

This commit is contained in:
Ben 2023-09-04 22:00:09 +01:00 committed by GitHub
parent 937151d872
commit af752b3754
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,3 @@
import million from 'million/compiler';
const millionConfig = { auto: true }
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
@ -287,10 +283,11 @@ const nextConfig = {
}
}
import million from 'million/compiler';
import withMDX from '@next/mdx'
const withMDXConfig = withMDX({ extension: /\.mdx?$/ })
import withTM from 'next-transpile-modules'
const withMDXConfig = withMDX({ extension: /\.mdx?$/ })
const withAnimeJS = withTM(['animejs'])
export default million.next(withAnimeJS(withMDXConfig(nextConfig)), millionConfig);
export default million.next(withAnimeJS(withMDXConfig(nextConfig)), { auto: true });