import { withPayload } from "@payloadcms/next/withPayload"; /** @type {import("next").NextConfig} */ const config = { output: "standalone", basePath: "/admin", reactStrictMode: true, images: { remotePatterns: [ { protocol: "https", hostname: "img.walters.to", }, { protocol: "https", hostname: "img.xevion.dev", }, ], }, webpack: (webpackConfig) => { webpackConfig.resolve.extensionAlias = { ".cjs": [".cts", ".cjs"], ".js": [".ts", ".tsx", ".js", ".jsx"], ".mjs": [".mts", ".mjs"], }; return webpackConfig; }, }; export default withPayload(config, { devBundleServerPackages: false });