mirror of
https://github.com/selfboot/ai_gallery.git
synced 2026-06-13 21:00:55 +08:00
45 lines
898 B
JavaScript
45 lines
898 B
JavaScript
const path = require('path');
|
|
|
|
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,
|
|
transpilePackages: ['lodash'],
|
|
turbopack: {
|
|
resolveAlias: {
|
|
'@': path.resolve(__dirname, 'src')
|
|
}
|
|
},
|
|
async headers() {
|
|
return [
|
|
{
|
|
source: '/:path*',
|
|
headers: [
|
|
{
|
|
key: 'X-Robots-Tag',
|
|
value: 'index,follow',
|
|
},
|
|
],
|
|
},
|
|
];
|
|
},
|
|
images: {
|
|
remotePatterns: [
|
|
{
|
|
protocol: 'https',
|
|
hostname: 'slefboot-1251736664.file.myqcloud.com',
|
|
port: '',
|
|
pathname: '/**',
|
|
},
|
|
]
|
|
},
|
|
};
|
|
|
|
module.exports = nextConfig; |