2023-06-16 16:32:51 +02:00
|
|
|
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: {
|
2023-10-19 22:24:48 +02:00
|
|
|
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}/**`,
|
|
|
|
},
|
2023-06-16 16:32:51 +02:00
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
configPath: path.resolve(__dirname, "./payload/payload.config.ts"),
|
|
|
|
},
|
|
|
|
);
|
|
|
|
|
|
|
|
module.exports = nextConfig;
|