mirror of
https://github.com/selfboot/ai_gallery.git
synced 2026-06-04 21:06:53 +08:00
41 lines
841 B
JavaScript
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;
|