File size: 797 Bytes
1e92f2d |
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 27 28 29 30 31 32 |
const { withPayload } = require("@payloadcms/next-payload");
const path = require("path");
/** @type {import('next').NextConfig} */
const nextConfig = withPayload(
{
reactStrictMode: true,
rewrites: [{ source: "/admin/(.*)", destination: "/admin/index.html" }],
images: {
remotePatterns: [
{
protocol: "https",
hostname: "nextjs-vercel.payloadcms.com",
port: "",
pathname: "/my-account/**",
},
{
protocol: "https",
hostname: process.env.NEXT_PUBLIC_S3_HOSTNAME,
port: "",
pathname: `/${process.env.NEXT_PUBLIC_S3_BUCKET}/**`,
},
],
},
},
{
configPath: path.resolve(__dirname, "./payload/payload.config.ts"),
},
);
module.exports = nextConfig;
|