summaryrefslogtreecommitdiff
path: root/next.config.js
blob: d76b0ba17f1b80e38783e2e20c56644c2f08120f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/**
 * Run `build` or `dev` with `SKIP_ENV_VALIDATION` to skip env validation. This is especially useful
 * for Docker builds.
 */
import './src/env.js';

import { createMDX } from 'fumadocs-mdx/next';
import { withPayload } from '@payloadcms/next/withPayload';

const withMDX = createMDX();

/** @type {import('next').NextConfig} */
const config = {
  reactStrictMode: false,
  experimental: {
    viewTransition: true,
  },
  serverExternalPackages: [
    'ts-morph',
    'typescript',
    'oxc-transform',
    'twoslash',
  ],
};

export default withPayload(withMDX(config));