๐Ÿ“ฆ payloadcms / payload

๐Ÿ“„ next.config.mjs ยท 16 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16import nextConfig from '../../next.config.mjs'

import path from 'path'
import { fileURLToPath } from 'url'

const __filename = fileURLToPath(import.meta.url)
const dirname = path.dirname(__filename)

export default {
  ...nextConfig,
  env: {
    PAYLOAD_CORE_DEV: 'true',
    ROOT_DIR: path.resolve(dirname),
  },
}