Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 3m43s
Build & Deploy / 🏗️ Build (push) Failing after 37s
Build & Deploy / 🧪 QA (push) Failing after 3m40s
Build & Deploy / 🚀 Deploy (push) Has been skipped
Build & Deploy / 🩺 Health Check (push) Has been skipped
Build & Deploy / 🔔 Notify (push) Successful in 2s
36 lines
906 B
JavaScript
36 lines
906 B
JavaScript
import withMintelConfig from "@mintel/next-config";
|
|
import { withPayload } from '@payloadcms/next/withPayload';
|
|
|
|
import createMDX from '@next/mdx';
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
pageExtensions: ['js', 'jsx', 'md', 'mdx', 'ts', 'tsx'],
|
|
reactStrictMode: true,
|
|
output: 'standalone',
|
|
images: {
|
|
loader: 'custom',
|
|
loaderFile: './src/utils/imgproxy-loader.ts',
|
|
},
|
|
async rewrites() {
|
|
return [
|
|
// Umami proxy rewrite handled in app/stats/api/send/route.ts
|
|
// Sentry relay handled in app/errors/api/relay/route.ts
|
|
];
|
|
},
|
|
async redirects() {
|
|
return [
|
|
{
|
|
source: '/case-studies/klz',
|
|
destination: '/case-studies/klz-cables',
|
|
permanent: true,
|
|
},
|
|
];
|
|
},
|
|
};
|
|
|
|
const withMDX = createMDX({
|
|
// Add markdown plugins here, as desired
|
|
});
|
|
export default withPayload(withMintelConfig(withMDX(nextConfig)));
|