5f65d741ed
- Section: responsive prop with media query injection - visual-weights: fontSize clamp() for responsive sizing - variables.css: add border-radius/shadow/transition/z-index tokens - ESLint flat config + Prettier + Changeset init - New components: Footer, NewsSidebar, BreakingNewsBanner - Image/Figure: loading=lazy, aspectRatio, sizes props
29 lines
677 B
JavaScript
29 lines
677 B
JavaScript
import createMDX from '@next/mdx';
|
|
import rehypePrettyCode from 'rehype-pretty-code';
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
output: 'export',
|
|
basePath: process.env.NEXT_PUBLIC_BASE_PATH || '',
|
|
images: { unoptimized: true },
|
|
pageExtensions: ['js', 'jsx', 'md', 'mdx', 'ts', 'tsx'],
|
|
transpilePackages: ['newspaperui-components', 'newspaperui-theme', 'newspaperui-utils'],
|
|
};
|
|
|
|
const withMDX = createMDX({
|
|
extension: /\.mdx?$/,
|
|
options: {
|
|
rehypePlugins: [
|
|
[
|
|
rehypePrettyCode,
|
|
{
|
|
theme: 'github-dark',
|
|
keepBackground: false,
|
|
},
|
|
],
|
|
],
|
|
},
|
|
});
|
|
|
|
export default withMDX(nextConfig);
|