ai_gallery/next.config.js
2026-04-14 11:48:39 +08:00

41 lines
841 B
JavaScript

try {
const { initOpenNextCloudflareForDev } = require("@opennextjs/cloudflare");
initOpenNextCloudflareForDev();
} catch {
// @opennextjs/cloudflare is only needed for Cloudflare dev/deploy
}
/** @type {import('next').NextConfig} */
const nextConfig = {
output: "standalone",
reactStrictMode: true,
productionBrowserSourceMaps: false,
transpilePackages: ['lodash'],
async headers() {
return [
{
source: '/:path*',
headers: [
{
key: 'X-Robots-Tag',
value: 'index,follow',
},
],
},
];
},
images: {
unoptimized: true,
remotePatterns: [
{
protocol: 'https',
hostname: 'slefboot-1251736664.file.myqcloud.com',
port: '',
pathname: '/**',
},
]
},
};
module.exports = nextConfig;