Files
xevion.dev/apps/payload/next.config.mjs
Xevion af81d8e048 refactor: large refactor around monorepo
Just a commit point while I'm testing stuff. Already decided at this
point to simplify and revert away from PayloadCMS.
2026-01-04 13:18:34 -06:00

32 lines
697 B
JavaScript

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 });