silverwolf-x's picture
download
raw
797 Bytes
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;

Xet Storage Details

Size:
797 Bytes
·
Xet hash:
47ce94ed9471b423b44f7e7dd7918b0b819daa25acdd66167f0615285a5308b2

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.