16 lines
323 B
JavaScript
16 lines
323 B
JavaScript
|
/** @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;
|