rsnext/examples/cms-dotcms/next.config.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
323 B
JavaScript
Raw Normal View History

/** @type {import('next').NextConfig} */
const nextConfig = {
async rewrites() {
const baseUrl = process.env.NEXT_PUBLIC_DOTCMS_HOST;
return [
{
source: "/images/:slug*",
destination: `${baseUrl}/images/:slug*`,
},
];
},
reactStrictMode: true,
};
module.exports = nextConfig;