mirror of
https://github.com/Xevion/xevion.dev.git
synced 2026-01-31 04:26:43 -06:00
Just a commit point while I'm testing stuff. Already decided at this point to simplify and revert away from PayloadCMS.
32 lines
697 B
JavaScript
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 });
|